armi.reactor.converters.tests.test_assemblyAxialLinkage module
- armi.reactor.converters.tests.test_assemblyAxialLinkage.createMultipinBlueprints(blockDef: list[str], assemDef: list[str], gridDef: list[str]) str [source]
- class armi.reactor.converters.tests.test_assemblyAxialLinkage.TestAxialLinkHelper(methodName='runTest')[source]
Bases:
TestCase
Tests for the AxialLink dataclass / namedtuple like class.
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.converters.tests.test_assemblyAxialLinkage.TestAreAxiallyLinked(methodName='runTest')[source]
Bases:
AxialExpansionTestBase
Provide test coverage for the different cases in assemblyAxialLinkage.areAxiallyLinked.
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.converters.tests.test_assemblyAxialLinkage.TestCheckOverlap(methodName='runTest')[source]
Bases:
AxialExpansionTestBase
Test axial linkage between components via the AssemblyAxialLinkage._checkOverlap.
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.
- runTest(componentsToTest: dict[Type[Component], dict[str, float]], assertion: Callable)[source]
Runs various linkage tests.
- Parameters:
componentsToTest – dictionary keys indicate the component type for
typeA
andtypeB
checks. the values indicate the neccessary geometry specifications of thetypeA
andtypeB
components.assertion – unittest.TestCase assertion
Notes
components “typeA” and “typeB” are assumed to be candidates for axial linking
two assertions: 1) comparing “typeB” component to “typeA”; 2) comparing “typeA” component to “typeB”
the different assertions are particularly useful for comparing two annuli
- class armi.reactor.converters.tests.test_assemblyAxialLinkage.TestMultipleComponentLinkage(methodName='runTest')[source]
Bases:
AxialExpansionTestBase
Ensure that multiple component axial linkage can be caught.
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.converters.tests.test_assemblyAxialLinkage.TestBlockLink(methodName='runTest')[source]
Bases:
TestCase
Test the ability to link blocks in an assembly.
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.