armi.bookkeeping.db.tests.test_database3 module¶
Tests for the Database3 class
- class armi.bookkeeping.db.tests.test_database3.TestDatabase3(methodName='runTest')[source]¶
Bases:
unittest.case.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_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_replaceNones()[source]¶
Super basic test that we handle Nones correctly in database read/writes
- class armi.bookkeeping.db.tests.test_database3.TestLocationPacking(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Tests for database location
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.