armi.nuclearDataIO.tests.test_xsCollections module

Module that tests methods within xsCollections

class armi.nuclearDataIO.tests.test_xsCollections.TestXsCollections(methodName='runTest')[source]

Bases: unittest.case.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_generateTotalScatteringMatrix()[source]

Generates the total scattering matrix by summing elastic, inelastic, and n2n scattering matrices.

test_generateTotalScatteringMatrixWithMissingData()[source]

Generates the total scattering matrix by summing elastic and n2n scattering matrices.

Notes

This tests that the total scattering matrix can be produced when the inelastic scattering matrix is not defined.

test_createMacrosFromMicros()[source]
test_collapseCrossSection()[source]

Tests cross section collapsing

Notes

The expected 1 group cross section was generated by running the collapse cross section method. This tests that this method has not been modified to produce a different result.