armi.bookkeeping.db.tests.test_database3 module

Tests for the Database3 class.

class armi.bookkeeping.db.tests.test_database3.TestDatabase3(methodName='runTest')[source]

Bases: TestCase

Tests for the Database3 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_writeToDB()[source]

Test writing to the database.

test_getH5File()[source]

Get the h5 file for the database, because that file format is language-agnostic.

makeHistory()[source]

Walk the reactor through a few time steps and write them to the db.

makeShuffleHistory()[source]

Walk the reactor through a few time steps with some shuffling.

test_prepRestartRun()[source]

This test is based on the armiRun.yaml case that is loaded during the setUp above. In that cs, reloadDBName is set to ‘reloadingDB.h5’, startCycle = 1, and startNode = 2. The nonexistent ‘reloadingDB.h5’ must first be created here for this test.

test_computeParents()[source]
test_load()[source]

Load a reactor at different time steps, from the database.

test_loadSortSetting()[source]
test_history()[source]
test_auxData()[source]
test_replaceNones()[source]

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

test_mergeHistory()[source]
test_splitDatabase()[source]
test_grabLocalCommitHash()[source]

Test of static method to grab a local commit hash with ARMI version.

test_fileName()[source]
test_readInputsFromDB()[source]

Test that we can read inputs from the database.

test_deleting()[source]
test_open()[source]
test_loadCS()[source]
test_loadBlueprints()[source]