validations_common.tests.callback_plugins.test_validation_stdout module¶
test_validation_stdout¶
Tests for validation_stdout callback plugin.
- class validations_common.tests.callback_plugins.test_validation_stdout.TestValidationStdout(*args: Any, **kwargs: Any)[source]¶
Bases:
validations_common.tests.base.TestCase
Tests of validation_stdout callback module.
- 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.
- test_new_play(mock_play, mock_play_name, mock_play_uuid)[source]¶
From the callback point of view, both Play and Task are virtually identical. Test involving them are therefore also very similar.
- test_new_task(mock_task, mock_task_name, mock_task_uuid)[source]¶
From the callback point of view, both Play and Task are virtually identical. Test involving them are therefore also very similar.
- validations_common.tests.callback_plugins.test_validation_stdout.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.