armi.physics.neutronics.tests.test_crossSectionSettings module

XS Settings tests

class armi.physics.neutronics.tests.test_crossSectionSettings.TestCrossSectionSettings(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_crossSections()[source]
test_pregeneratedCrossSections()[source]
test_pregeneratedFluxInputs()[source]
test_prioritization()[source]
test_homogeneousXsDefaultSettingAssignment()[source]

Make sure the object can whip up an unspecified xsID by default.

This is used when user hasn’t specified anything.

test_setDefaultSettingsByLowestBuGroupHomogeneous()[source]
test_setDefaultSettingsByLowestBuGroupOneDimensional()[source]
test_optionalKey()[source]

Test that optional key shows up with default value.

test_badCrossSections()[source]
class armi.physics.neutronics.tests.test_crossSectionSettings.Test_XSSettings(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_yamlIO()[source]

Ensure we can read/write this custom setting object to yaml

test_caseSettings()[source]

Test the setting of the cross section setting using the case settings object.

Notes

The purpose of this test is to ensure that the cross sections sections can be removed from an existing case settings object once they have been set.

test_csBlockRepresentation()[source]

Test that the XS block representation is applied globally, but only to XS modeling options where the blockRepresentation has not already been assigned.

test_csBlockRepresentationFileLocation()[source]

Test that default blockRepresentation is applied correctly to a XSModelingOption that has the xsFileLocation attribute defined.

test_xsSettingsSetDefault()[source]

Test the configuration options of the setDefaults method.