auxi.modelling.business.structure_test module¶
This module provides testing code for the auxi.modelling.business.activity module.
@author: Ex Mente Technologies (Pty) Ltd
-
class
auxi.modelling.business.structure_test.ActivityUnitTester(methodName='runTest')¶ Bases:
unittest.case.TestCaseTester for the auxi.modelling.business.structure.Activity class.
-
setUp()¶
-
test__meet_exection_criteria()¶
-
test_constructor()¶
-
test_get_path()¶
-
test_get_referenced_accounts()¶
-
test_prepare_to_run()¶
-
test_set_name()¶ Test wether the name changes when it is set and that the activity’s path is updated correctly.
-
test_set_parent_path()¶
-
-
class
auxi.modelling.business.structure_test.ComponentUnitTester(methodName='runTest')¶ Bases:
unittest.case.TestCaseTester for the auxi.modelling.business.structure.Component class.
-
setUp()¶
-
test_add_activity_invalid_account_name()¶
-
test_add_activity_valid_account_name()¶
-
test_constructor()¶
-
test_create_component()¶
-
test_get_activity_exists()¶
-
test_get_activity_not_exists()¶
-
test_get_component_exists()¶
-
test_get_component_not_exists()¶
-
test_prepare_to_run()¶ Test that the component run’s its activities’ prepare_to_run methods.
-
test_remove_component()¶
-
test_run()¶ Test that the component runs its activities.
-
test_set_name()¶ Test wether the name changes when it is set, that the component’s name changes and that the component’s children’s paths are updated correctly.
-
test_set_parent_path()¶
-
-
class
auxi.modelling.business.structure_test.EntityUnitTester(methodName='runTest')¶ Bases:
unittest.case.TestCaseTester for the auxi.modelling.entity.component class.
-
setUp()¶
-
test__perform_year_end_gross_profit()¶ Test that the year end gross profit account is closed correctly.
-
test__perform_year_end_gross_profit_and_income_summary()¶ Test that the year end gross profit and income summary accounts are summed up correctly.
-
test__perform_year_end_income_summary()¶ Test that the year end income summary account is closed correctly.
-
test__perform_year_end_income_tax()¶
-
test__perform_year_end_procedure()¶ Test that all the year end accounts has been closed of correctly.
-
test__perform_year_end_retained_earnings()¶ Test that the year end retained earnings account is closed correctly.
-
test_constructor()¶
-
test_create_component()¶
-
test_getitem_exists()¶
-
test_getitem_not_exists()¶
-
test_prepare_to_run()¶ Test that the entity run’s its component’ prepare_to_run methods.
-
test_remove_component()¶
-
test_run()¶ Test that the entity runs its components.
-
test_set_name()¶ Test wether the name changes when it is set, that the entity’s name changes and that the component’s children’s paths are updated correctly.
-
test_set_parent_path()¶
-