armi.matProps.tests.test_parsing module

Test YAML parsers for all files in the matProps data directory to ensure that there are no parsing errors.

class armi.matProps.tests.test_parsing.TestParsing(methodName='runTest')[source]

Bases: TestCase

Class which tests the parsing and material library loading functions of matProps.

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.

property dirname

Provide the directory where this file is located.

test_datafilesMatOwner()[source]
test_multiDataLoadingLoadingAll()[source]
test_loadSafe()[source]
test_dataLoadingPrioSameDir()[source]
test_datafilesBadPath()[source]
test_multiDataLoadingMultidir()[source]

Tests loading multiple data directories.

Load all files present in the following subdirectories of the matProps repository: tests/testDir1 and tests/testDir2.

test_dataLoadingPrioDiffDir()[source]

Tests that an error is raised for loading a material twice different directories.

Attempts to load all files present in the following subdirectories of the matProps repository: tests/testDir1 and tests/testDir3. Though that includes some duplicates that should raise an error.

test_datafilesGetMat()[source]

Test a material retrieved by getMaterial(name) is the same as another material with the same name.

Also tests trying to access an unknown material.