armi.matProps.tests.test_functions module
Unit tests for the Function class.
- class armi.matProps.tests.test_functions.TestFunctions(methodName='runTest')[source]
Bases:
MatPropsFunTestBaseClass 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_datafilesVarVals()[source]
Test to make sure that parsing variable values return the expected values when parsing “max” and “min” nodes for the T variable.
- 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.