validations_common.tests.callback_plugins.test_http_json module

test_http_json

Tests for http_json callback plugin.

class validations_common.tests.callback_plugins.test_http_json.TestHttpJson(*args: Any, **kwargs: Any)[source]

Bases: validations_common.tests.base.TestCase

setUp()[source]
test_callback_instantiation()[source]

Verifying that the CallbackModule is instantiated properly. Test checks presence of CallbackBase in the inheritance chain, in order to ensure that folowing tests are performed with the correct assumptions.

validations_common.tests.callback_plugins.test_http_json.is_iso_time(time_string)[source]

Checks if string represents valid time in ISO format, with the default delimiter. Regex is somewhat convoluted, but general enough to last at least until the 9999 AD.

Returns:

True if string matches the pattern. False otherwise.