pkmodel.tests package

Submodules

pkmodel.tests.test_model module

class pkmodel.tests.test_model.ModelTest(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Model class.

test_abstractmodel()
test_create()

Tests Model creation.

test_generate_model()

Tests generate_model for 3 cases

pkmodel.tests.test_protocol module

class pkmodel.tests.test_protocol.ProtocolTest(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Protocol class.

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.TestCase

Tests the Solution class.

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()

pkmodel.tests.testarray1 module

Module contents