armi.matProps.dataSchema.tests.test_compAndType module
Unit tests for the composition and material type data in the material data file schema.
- class armi.matProps.dataSchema.tests.test_compAndType.TestMaterialType(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- class armi.matProps.dataSchema.tests.test_compAndType.TestValidateDir(methodName='runTest')[source]
Bases:
TestCaseCreate 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.
- class armi.matProps.dataSchema.tests.test_compAndType.TestComposition(methodName='runTest')[source]
Bases:
TestCaseClass for testing the composition related data in the material data file schema.
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_compositionBalanceTest()[source]
This YAML contains the key “Fe:”” with the incorrect string “test” that will be caught because it is not the only allowed string “balance”.
- test_compositionKeyFail()[source]
This YAML has an incorrect key, test, that does not follow the regexes in the schema.
- test_compositionLimitTestMax()[source]
This YAML has a value out of range in the “C” key of composition. The value purposely goes over 100.
- test_compositionLimitTestMin()[source]
This YAML has a value out of range in the “C” key of composition. The value purposely goes under 0.