armi.matProps.dataSchema.tests.test_parameter module

Unit tests for the parameter related data in the material data file schema.

class armi.matProps.dataSchema.tests.test_parameter.TestParameter(methodName='runTest')[source]

Bases: TestCase

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_maxDegreesCTest()[source]

This YAML contains an incorrect value for “max degrees C”. Only numbers are allowed, so the string “test” will be caught.

test_minDegreeCTest()[source]

This YAML contains an incorrect value for “min degrees C”. Only numbers are allowed, so the string “test” will be caught.

test_missingFxnTypePW()[source]

This YAML is missing “function type” inside the piecewise function.

test_missingMaxDCPW()[source]

This YAML is missing “max degrees C” inside the piecewise function.

test_missingMinDCPW()[source]

This YAML is missing “max degrees C” inside the piecewise function.

test_missingParamFxnType()[source]

This YAML is missing the “function type” key.

test_missingParamMaxDC()[source]

This YAML is missing the “max degrees C” key.

test_missingParamMinDC()[source]

This YAML is missing the “min degrees C” key.

test_missingRefProperty()[source]

This YAML is missing references for a material property.

test_missingTabData()[source]

This file is missing tabulated data for a material property.

test_missingTabDataPW()[source]

This YAML is missing tabulated data in the piecewise function.

test_polyBadKeys()[source]

This YAML has bad coefficient values for a polynomial function.

test_polyMissingCoef()[source]

This file is missing the “coefficients” property of the polynomial function.

test_unidentifiedFxnTest()[source]

This YAML contains a string that is not in the enum for the “function type” string.

test_loadExampleFile()[source]

Loads the example file in the data_schema directory to make sure it loads without raising an exception.