armi.reactor.blueprints.tests.test_blueprints module
Tests the blueprints (loading input) file.
- class armi.reactor.blueprints.tests.test_blueprints.TestBlueprints(methodName='runTest')[source]
Bases:
TestCase
Test that the basic functionality of faithfully receiving user input to construct ARMI data model objects works as expected.
Try to ensure you test for ideas and not exact matches here, to make the tests more robust.
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.
- class armi.reactor.blueprints.tests.test_blueprints.TestBlueprintsSchema(methodName='runTest')[source]
Bases:
TestCase
Test the blueprint schema checks.
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_noDuplicateKeysInYamlBlueprints()[source]
Prove that if you duplicate a section of a YAML blueprint file, a hard error will be thrown.
- test_topLevelComponentInput()[source]
Make sure components defined at the top level are loaded.
Components can be loaded either within the block blueprint or on their own outside of blocks. This checks the latter form.
We specified a 3D component in the test input (sphere) so that it has a height and therefore a volume without requiring a parent.