auxi.modelling.process.materials.thermo_test module

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

class auxi.modelling.process.materials.thermo_test.ThermoMaterialPackageUnitTester(methodName='runTest')

Bases: unittest.case.TestCase

Unit tester for the auxi.modelling.process.materials.thermo.MaterialPackage class.

add_incompatible_packages()
setUp()
test___str__()
test_add_operator_1()

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

other = tuple (compound, mass, temperature)

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_extract_2()
test_extract_3()
test_get_H()
test_get_P()
test_get_T()
test_get_assay()
test_get_compound_mass()
test_get_element_masses()
test_mass()
test_multiply_operator()
test_set_H()
test_set_T()
class auxi.modelling.process.materials.thermo_test.ThermoMaterialUnitTester(methodName='runTest')

Bases: unittest.case.TestCase

Unit tester for the auxi.modelling.process.materials.thermo.Material class.

setUp()
test_add_assay()
test_constructor()
test_create_empty_assay()
test_create_package()
test_create_stream()
test_get_assay_total()
test_get_compound_index()
test_str()