auxi.modelling.business.models_test module¶
This module provides testing code for the classes in the auxi.modelling.business.models module.
-
class
auxi.modelling.business.models_test.
TimeBasedModelUnitTester
(methodName='runTest')¶ Bases:
unittest.case.TestCase
Tester for the auxi.modelling.business.models.TimeBasedModel class.
-
setUp
()¶
-
test_constructor
()¶
-
test_create_entity
()¶
-
test_prepare_to_run
()¶ Test that the model’s entities prepare_to_run is called when the model’s prepare_to_run is called.
-
test_remove_entity
()¶
-
test_run
()¶ Test that the model’s entities run is called when the model’s run is called. Also test that the model was run for the expected timeperiod.
-
test_set_name
()¶ Test wether the name changes when it is set, that the model’s path is updated and that the model’s children’s paths are updated correctly.
-