auxi.modelling.process.materials.chem_test module

This module provides testing code for classes in the chem module.

class auxi.modelling.process.materials.chem_test.ChemMaterialPackageUnitTester(methodName='runTest')

Bases: unittest.case.TestCase

Tester for the auxi.modelling.process.materials.chemistry.material.Material class.

add_incompatible_packages()
setUp()
test_add_operator_1()

other = MaterialPackage

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

Tests the scenario when a ‘mix’ is created and two packages ‘mixed’ into the mix package.

test_add_operator_3()

other = tuple (compound, 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_compound_mass()
test_get_element_masses()
test_get_mass()
test_multiply_operator()
test_subtract_operator_2()
test_subtract_operator_3()
class auxi.modelling.process.materials.chem_test.ChemMaterialUnitTester(methodName='runTest')

Bases: unittest.case.TestCase

Tester for the auxi.modelling.process.materials.chem.Material class.

assertAlmostEqual(first, second, places=14, msg=None, delta=None)
setUp()
test_add_assay()
test_constructor()
test_create_empty_assay()
test_create_package()
test_get_assay_total()
test_get_compound_index()