armi.reactor.tests.test_flags module

Tests for flags.

class armi.reactor.tests.test_flags.TestFlags(methodName='runTest')[source]

Bases: TestCase

Tests for flags system.

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_fromString()[source]
test_fromStringWithNumbers()[source]
test_flagsDefinedWithNumbers()[source]

Test that if we DEFINE flags with numbers in them, those are treated as exceptions.

test_flagsToAndFromString()[source]

Convert flag to and from string for serialization.

test_toStringAlphabetical()[source]

Ensure that, for multiple flags, toString() returns them in alphabetical order.

test_fromStringStrict()[source]
test_lookup()[source]

Make sure lookup table is working.

test_convertsStringsWithNonFlags()[source]
test_defaultIsFalse()[source]
test_isPickleable()[source]

Must be pickleable to use syncMpiState.