pkmodel.tests package
Submodules
pkmodel.tests.test_model module
pkmodel.tests.test_protocol module
- class pkmodel.tests.test_protocol.ProtocolTest(methodName='runTest')
Bases:
unittest.case.TestCaseTests the
Protocolclass.- test_fill_parameters()
Test fill_parameters function.
- test_generate_model()
- test_input_dict()
- test_inputs_CLX()
Tests exceptions for bad inputs for CL, X and Time
- test_inputs_int()
- test_inputs_periph()
- test_inputs_strings()
- test_read_config_file()
Test read_config_file function.
pkmodel.tests.test_solution module
- class pkmodel.tests.test_solution.SolutionTest(methodName='runTest')
Bases:
unittest.case.TestCaseTests the
Solutionclass.- generate_test_files()
Run program to generate outputs from solution <– its very difficult to self-contain solutions.py without creating an entire model module specifically for the tests. This is due to the solutions class calling a scipy.integrate object.
- Returns
nill
- Output
plot + parameter file + solutions csv
- test_files_exist()