armi.matProps.tests.test_functions module

Unit tests for the Function class.

class armi.matProps.tests.test_functions.TestFunctions(methodName='runTest')[source]

Bases: MatPropsFunTestBase

Class which encapsulates the unit tests data and methods to test the matProps Function 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_getReferences()[source]
test_datafilesVarVals()[source]

Ensure that parsing variable values return the expected values when parsing “max” and “min” nodes.

Test Case: For matProps-based material properties, we can define a valid range of input independent variables. T_ARMI_MAT_PROPERTIES2
signature: test_datafilesVarVals
requirements: R_ARMI_MAT_PROPERTIES
test_datafilesMaxVar()[source]

Test that makes sure a ValueError is thrown if the max of a variable is less than the min.

test_datafilesInvType()[source]

Test that makes sure a KeyError is thrown if an unsupported function type is provided.

test_refTempEval()[source]

Test that a function with a reference temperature correctly parses and returns the expected value.

test_refTempMissing()[source]

Test that a ValueError is thrown when accessing a reference temperature value that is not provided.

test_refTempInvalid()[source]

Test to make sure that a ValueError is thrown if the provided reference temperature value is invalid.

test_independentVars()[source]
test_calcEdgeCases()[source]
test_references()[source]
test_tabulatedData()[source]