Skip to content

Commit

Permalink
Add test for MultipleComponentMerger
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanMcDonald committed Jul 23, 2024
1 parent 4e5114d commit 5bb7497
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions armi/reactor/converters/tests/test_blockConverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ def _test_dissolve(self, block, soluteName, solventName):
self.assertNotIn(soluteName, convertedBlock.getComponentNames())
self._checkAreaAndComposition(block, convertedBlock)

def test_dissolveMultiple(self):
"""Test dissolving multiple components into another."""
self._test_dissolve_multi(loadTestBlock(), ["wire", "clad"], "coolant")
self._test_dissolve_multi(loadTestBlock(), ["inner liner", "outer liner"], "clad")

def _test_dissolve_multi(self, block, soluteNames, solventName):
converter = blockConverters.MultipleComponentMerger(block, soluteNames, solventName)
convertedBlock = converter.convert()
for soluteName in soluteNames:
self.assertNotIn(soluteName, convertedBlock.getComponentNames())
self._checkAreaAndComposition(block, convertedBlock)

def test_build_NthRing(self):
"""Test building of one ring."""
RING = 6
Expand Down

0 comments on commit 5bb7497

Please sign in to comment.