mistral.tests.unit package

Subpackages

Submodules

mistral.tests.unit.base module

class mistral.tests.unit.base.BaseTest(*args, **kwds)

Bases: oslotest.base.BaseTestCase

assertDictEqual(cmp1, cmp2)
assertListEqual(l1, l2)
override_config(name, override, group=None)

Cleanly override CONF variables.

setUp()
class mistral.tests.unit.base.DbTestCase(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

classmethod heavy_init()

Runs a long initialization.

This method runs long initialization once by class and can be extended by child classes.

is_db_session_open()
setUp()
class mistral.tests.unit.base.FakeHTTPResponse(text, status_code, reason=None, headers=None, history=None, encoding='utf8', url='', cookies=None, elapsed=None)

Bases: object

json()

mistral.tests.unit.config module

mistral.tests.unit.fake_policy module

mistral.tests.unit.test_command_dispatcher module

class mistral.tests.unit.test_command_dispatcher.CommandDispatcherTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

setUp()
test_rearrange_commands()

mistral.tests.unit.test_coordination module

class mistral.tests.unit.test_coordination.ServiceCoordinatorTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

setUp()
test_join_group_and_get_members()
test_join_group_and_leave_group()
test_join_group_not_active()
test_start()
test_start_without_backend()
test_stop()
test_stop_not_active()
class mistral.tests.unit.test_coordination.ServiceTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

setUp()
test_register_membership(*args, **keywargs)

mistral.tests.unit.test_exception_base module

class mistral.tests.unit.test_exception_base.ExceptionTestCase(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

Test cases for exception code.

test_default_code()
test_default_message()
test_duplicate_obj_code()
test_nf_with_message()
test_nf_with_no_message()

mistral.tests.unit.test_expressions module

class mistral.tests.unit.test_expressions.ExpressionsTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

test_evaluate_complex_expressions()
test_evaluate_recursively()
test_evaluate_recursively_arbitrary_dict()
test_evaluate_recursively_environment()
class mistral.tests.unit.test_expressions.InlineYAQLEvaluatorTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

setUp()
test_function_string()
test_multiple_placeholders()
test_validate()
test_validate_failed()
class mistral.tests.unit.test_expressions.YaqlEvaluatorTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

setUp()
test_expression_result()
test_function_len()
test_function_string()
test_json_pp()
test_select_result()
test_validate()
test_validate_failed()
test_wrong_expression()

Module contents