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.

register_action_class(name, cls, attributes=None, desc=None)
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_mixing_jinja_and_yaql()
test_evaluate_recursively()
test_evaluate_recursively_arbitrary_dict()
test_evaluate_recursively_environment()
test_validate_jinja_with_yaql_context()
test_validate_mixing_jinja_and_yaql()

mistral.tests.unit.test_serialization module

class mistral.tests.unit.test_serialization.MyClass(a, b)

Bases: mistral.serialization.MistralSerializable

class mistral.tests.unit.test_serialization.MyClassSerializer

Bases: mistral.serialization.DictBasedSerializer

deserialize_from_dict(entity_dict)
serialize_to_dict(entity)
class mistral.tests.unit.test_serialization.SerializationTest(*args, **kwds)

Bases: mistral.tests.unit.base.BaseTest

setUp()
test_dict_based_serializer()
test_polymorphic_serializer_custom_object()
test_polymorphic_serializer_primitive_types()
test_register_twice()

Module contents