auxi.modelling.business.basic_test module

This module provides testing code for the auxi.modelling.business.basic module.

class auxi.modelling.business.basic_test.BasicActivityUnitTester(methodName='runTest')

Bases: unittest.case.TestCase

Tester for the auxi.modelling.business.basic.BasicActivity class.

setUp()
test__meet_exection_criteria()

Test that the activity only meets the execution criteria when it’s amount is greater than 0.

test_constructor()
test_get_referenced_accounts()

Test that the activity run method get_referenced_accounts accounts matches the debit and credit accounts self.object was initialised with.

test_run()

Test that the activity run method creates a transaction with an amount of 5000.

class auxi.modelling.business.basic_test.BasicLoanActivityUnitTester(methodName='runTest')

Bases: unittest.case.TestCase

Tester for the auxi.modelling.business.basic.BasicLoanActivity class.

setUp()
test__meet_exection_criteria()

Test that the activity only meets the execution criteria when it’s amount is greater than 0 and its duration is greater than 0.

test_constructor()
test_get_referenced_accounts()

Test that the activity run method get_referenced_accounts accounts matches the debit and credit accounts self.object was initialised with.

test_run_first_month()

Test that the activity run method creates a transaction with an amount of 180000 on the first month. No other transactions

test_run_last_month()

Test that the activity run method creates settled the loan on the loans’ last month and that the transactions

test_run_third_month()

Test that the activity run method accrued the interest correctly.