armi.bookkeeping.db.tests.test_jaggedArray module

Tests for the JaggedArray class.

class armi.bookkeeping.db.tests.test_jaggedArray.TestJaggedArray(methodName='runTest')[source]

Bases: TestCase

Tests for the JaggedArray class.

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_roundTrip()[source]

Basic test that we handle Nones correctly in database read/writes.

test_roundTripBool()[source]

Basic test that we handle Nones correctly in database read/writes.

test_flatten()[source]

Test the recursive flattening static method.

test_backwardsCompatible()[source]

Test that the new JaggedArray can unpack the old database jagged data format.

The “old” database format contains shapes and offsets for locations that have None. The “new” database format only contains shapes and offsets for non-None values. The “new” unpacking routine is able to read either format.