armi.reactor.tests.test_reactors module
Testing for reactors.py.
- armi.reactor.tests.test_reactors.buildOperatorOfEmptyHexBlocks(customSettings=None)[source]
Builds a operator w/ a reactor object with some hex assemblies and blocks, but all are empty.
Doesn’t depend on inputs and loads quickly.
- Parameters:
customSettings (dict) – Dictionary of off-default settings to update
- armi.reactor.tests.test_reactors.buildOperatorOfEmptyCartesianBlocks(customSettings=None)[source]
Builds a operator w/ a reactor object with some Cartesian assemblies and blocks, but all are empty.
Doesn’t depend on inputs and loads quickly.
- Parameters:
customSettings (dict) – Off-default settings to update
- class armi.reactor.tests.test_reactors.ReactorTests(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.
- class armi.reactor.tests.test_reactors.HexReactorTests(methodName='runTest')[source]
Bases:
ReactorTests
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]
This test works through multiple levels of the hierarchy to test ability to modify parameters at different levels.
- test_getAssemblyWithLoc()[source]
Get assembly by location, in a couple different ways to ensure they all work.
- test_whenNoAssemblies(mockGetAssemblies)[source]
Test various edge cases when there are no assemblies.
- test_removeAssembliesInRingHex()[source]
Since the test reactor is hex, we need to use the overrideCircularRingMode option to remove assemblies from it.
- test_createAssemblyOfTypeExpandedCore()[source]
Test creation of new assemblies in an expanded core.
- test_applyThermalExpansion_CoreConstruct()[source]
Test that assemblies in core are correctly expanded.
Notes
all assertions skip the first block as it has no $Delta T$ and does not expand
- class armi.reactor.tests.test_reactors.CartesianReactorTests(methodName='runTest')[source]
Bases:
ReactorTests
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.CartesianReactorNeighborTests(methodName='runTest')[source]
Bases:
ReactorTests
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.