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

This contains an incorrect material type, not included in the enum in the ‘material type’ schema.

class armi.matProps.dataSchema.tests.test_compAndType.TestValidateDir(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_validateDir()[source]
class armi.matProps.dataSchema.tests.test_compAndType.TestComposition(methodName='runTest')[source]

Bases: TestCase

Class 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.

test_referenceTypeTest()[source]

This YAML contains an incorrect type for the “ref” key in references.

test_referenceTypeTest2()[source]

This YAML contains an incorrect type for the “refType” key in references.