armi.settings.fwSettings.tests.test_tightCouplingSettings module

Unit testing for tight coupling settings.

  • The settings example below shows the intended use for these settings in an ARMI yaml input file.

  • Note, for these to be recognized, they need to be prefixed with “tightCouplingSettings:”.

class armi.settings.fwSettings.tests.test_tightCouplingSettings.TestTightCouplingSettings(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_validAssignments()[source]

Tests that the tight coupling settings dictionary can be added to.

test_incompleteAssignment()[source]

Tests that the tight coupling settings is rendered empty if a complete dictionary is not provided.

test_missingAssignments()[source]

Tests failure if not all keys/value pairs are provided on initialization.

test_invalidArgumentTypes()[source]

Tests failure when the values of the parameters do not match the expected schema.

test_extraAssignments()[source]

Tests failure if additional keys are supplied that do not match the expected schema or if there are any typos in the expected keys.

test_serializeSettingsException()[source]

Ensure the TypeError in serializeTightCouplingSettings can be reached.

test_yamlIO()[source]

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