armi.reactor.converters.tests.test_massRedistribution module

Unit tests on the mass redistribution class.

These are limited in scope. More extensive testing is done in test_axialExpansionChanger_MultiPin.py

class armi.reactor.converters.tests.test_massRedistribution.BlockLike(height: float)[source]

Bases: object

Stand in for a component’s parent.

getHeight()[source]

Produce the block height.

static getSymmetryFactor()[source]
class armi.reactor.converters.tests.test_massRedistribution.TestMassRedistribution(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.

test_noUpdateMisMatchedPinNDens()[source]

Pin number density is only updated if both components have pinNDens populated.

test_updatedPinNDens()[source]

Test the ability to shift pin ndens between components.

test_updatedDetailedNDens()[source]

Test the ability to shift detailed ndens between components.

test_volumes()[source]

Test the volume properties.

Even relatively simple functionality deserves low-level unit testing.

test_onePinNDensNotBoth()[source]

Ensure that a warning is logged if one component has pinNDens and the other does not.

test_oneDetailedNDensNotBoth()[source]

Ensure that a warning is logged if one component has detailedNDens and the other does not.