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:
TestCaseClass 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_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.