The congress.tests.api.test_policy_model Module

class congress.tests.api.test_policy_model.TestPolicyModel(*args, **kwargs)

Bases: congress.tests.base.SqlTestCase

setUp()
test_add_item(*args, **keywargs)
test_add_item_with_id()
test_add_item_with_long_abbreviation()
test_add_item_without_name()
test_delete_item()
test_get_invalid_item()
test_get_item()
test_get_items()
test_in_mem_and_db_policies()
test_policy_api_model_error()

Test the policy api model.

test_simulate_action()
test_simulate_invalid_policy()
test_simulate_invalid_sequence()
test_simulate_policy_errors()
test_simulate_with_delta()
test_simulate_with_delta_and_trace()
test_simulate_with_trace()