armi.matProps.tests.test_property module

Program that runs all of the tests contained in PropertyTests class.

class armi.matProps.tests.test_property.PropertyTests(methodName='runTest')[source]

Bases: TestCase

Class which contains tests for the matProps Property class.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_propertiesUnique()[source]

Ensure the Property.name and Property.symbol are all unique inside the matProps.properties container.

test_propertiesNames()[source]

Ensure that we have the correct set of Properties in matProps.

test_propertiesInvName()[source]

Ensure loadNode fails correctly when provided when provided an unknown property.

test_propertiesDefinitions()[source]

Check a logic branch in the Function.factory method which initializes armi.matProps.Function objects to be null. armi.matProps.Function objects only get set to a non-null object if the appropriate property node is provided in the YAML file. A test YAML file with only the density property provided. It checks to make sure that the Material.rho object corresponding with density is not a null object and performs an evaluation. A check is then performed on the Material.k object. This object, which corresponds to the thermal conductivity property, should be null as it is not defined in the test YAML file.

test_spotCheckAllPropsDict()[source]

Spot check every property at least once, using a dictionary of input values.

Test Case: We can access matProps-based material properties through a dictionary of independent variable values. T_ARMI_MAT_PROPERTIES3
signature: test_spotCheckAllPropsDict
requirements: R_ARMI_MAT_PROPERTIES
test_spotCheckAllPropsKwargs()[source]

Spot check every property at least once, using kwargs.

Test Case: We can access matProps-based material properties using independent variables. T_ARMI_MAT_PROPERTIES4
signature: test_spotCheckAllPropsKwargs
requirements: R_ARMI_MAT_PROPERTIES
test_spotCheckAllPropsCall()[source]

Spot check every property at least once, using the __call__ method.

Test Case: We can access matProps-based material properties using independent variables. T_ARMI_MAT_PROPERTIES5
signature: test_spotCheckAllPropsCall
requirements: R_ARMI_MAT_PROPERTIES
test_defPropDup()[source]