diff --git a/armi/reactor/tests/test_assemblies.py b/armi/reactor/tests/test_assemblies.py index c18850ed0..125c0d364 100644 --- a/armi/reactor/tests/test_assemblies.py +++ b/armi/reactor/tests/test_assemblies.py @@ -204,7 +204,6 @@ def setUp(self): ) self.assembly = makeTestAssembly(NUM_BLOCKS, self.assemNum, r=self.r) - self.r.core.add(self.assembly) # Use these if they are needed self.blockParams = { @@ -267,6 +266,7 @@ def setUp(self): self.assembly.add(b) self.blockList.append(b) + self.r.core.add(self.assembly) self.assembly.calculateZCoords() def test_isOnWhichSymmetryLine(self): @@ -345,6 +345,12 @@ def test_moveTo(self): cur = self.assembly.spatialLocator self.assertEqual(cur, ref) + def test_scaleParamsWhenMoved(self): + """Volume integrated parameters must be scaled when an assembly is placed on a core boundary.""" + ref = self.r.core.spatialGrid.getLocatorFromRingAndPos(3, 10) + i, j = grids.HexGrid.getIndicesFromRingAndPos(3, 10) + locator = self.r.core.spatialGrid[i, j, 0] + def test_getName(self): cur = self.assembly.getName() ref = self.name