auxi.modelling.process.materials.psd_test module¶
This module provides testing code for the psdmaterial module.
@author: Ex Mente Technologies (Pty) Ltd
-
class
auxi.modelling.process.materials.psd_test.PsdMaterialPackageUnitTester(methodName='runTest')¶ Bases:
unittest.case.TestCaseTester for the auxi.modelling.process.materials.psd.material.MaterialPackage class.
-
setUp()¶
-
test_add_operator_1()¶ other = MaterialPackage Test whether the add operator calculates the resulting package correctly.
-
test_add_operator_3()¶ other = tuple (size_class, mass) Test whether the add operator calculates the resulting package correctly. Results were checked against FactSage results. They are not exactly the same, since the magnetic and other non-cp contributions are omitted by the thermo module.
-
test_clone()¶
-
test_constructor()¶
-
test_extract_1()¶
-
test_get_assay()¶
-
test_get_mass()¶
-
test_get_size_class_mass()¶
-
test_multiply_operator()¶
-
test_subtract_operator_2()¶
-
test_subtract_operator_3()¶
-
-
class
auxi.modelling.process.materials.psd_test.PsdMaterialUnitTester(methodName='runTest')¶ Bases:
unittest.case.TestCaseTester for the auxi.modelling.process.materials.psd.Material class.
-
setUp()¶
-
test_add_assay()¶
-
test_constructor()¶
-
test_create_empty_assay()¶
-
test_create_package()¶
-
test_get_assay_total()¶
-
test_get_size_class_index()¶
-