armi.matProps.tests.test_interpolationFunctions module
Program that runs all of the tests contained in the TestInterpolationFunctions class.
- class armi.matProps.tests.test_interpolationFunctions.TestInterpolationFunctions(methodName='runTest')[source]
Bases:
TestCaseClass which creates tests for the matProps InterpolationFunctions files.
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_linearLinear()[source]
Test which validates the values returned from the linear-linear interpolation method.
Uses numpy linspace function to generate values at which interpolation will be performed.
- test_linearLinearInterpolation()[source]
Duplicate test validating that the correct values are returned from a linear-linear interpolation.
Differs from test_linearLinear by constructing interpolation points using standard lists instead of numpy linspace.
- test_linearLinearExtrapolation()[source]
Check to make sure a ValueError is thrown if attempting an interpolation outside the function domain.