armi.reactor.tests.test_reactors module
Testing for reactors.py.
- class armi.reactor.tests.test_reactors.ReactorTests(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.reactor.tests.test_reactors.HexReactorTests(methodName='runTest')[source]
Bases:
ReactorTestsBase class meant to pair with the
HexReactorReadOnlyTestsunit test class.The tests in this class all modify the Reactor object, so we need to create a new test reactor for each test.
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_getSetParameters()[source]
Work through multiple levels of the data model hierarchy to test ability to modify parameters.
- test_restoreReactor()[source]
Restore a reactor after growing it from third to full core.
Test Case: Convert a third-core to a full-core geometry and then restore it. T_ARMI_THIRD_TO_FULL_CORE1
- test_updateBlockBOLHeights_DBLoad()[source]
Test that blueprints assemblies are expanded in DB load.
- class armi.reactor.tests.test_reactors.HexReactorReadOnlyTests(methodName='runTest')[source]
Bases:
TestCaseTesting base class meant to pair with the
HexReactorTestsunit test class.The tests in this class only READ, and not WRITE to the Reactor object, so we only have to create one test reactor.
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_getNumAssemsWithAllRingsBipass()[source]
Test edge case in getNumAssembliesWithAllRingsFilledOut by bypassing some of the logic.
- test_getAssemblyWithLoc()[source]
Get assembly by location, in a couple different ways to ensure they all work.
- class armi.reactor.tests.test_reactors.HexReactorSoloTests(methodName='runTest')[source]
Bases:
ReactorTestsTesting base class meant to pair with the
HexReactorTestsunit test class.Each test here creates its own, slightly unique, test reactor.
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.tests.test_reactors.BigHexReactorTests(methodName='runTest')[source]
Bases:
ReactorTestsTesting base class meant to pair with the
HexReactorTestsunit test class.These tests all need a larger test reactor. Ideally, we will migrate these to smaller test reactors one day.
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.tests.test_reactors.CartesianReactorTests(methodName='runTest')[source]
Bases:
ReactorTestsCreate 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.tests.test_reactors.CartesianReactorNeighborTests(methodName='runTest')[source]
Bases:
ReactorTestsCreate 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.