armi.bookkeeping.tests.test_historyTracker module¶
Tests for the history tracker interface.
These tests actually run a jupyter notebook that’s in the documentation to build a valid HDF5 file to load from as a test fixtures. Thus they take a little longer than usual.
- class armi.bookkeeping.tests.test_historyTracker.TestHistoryTracker(methodName='runTest')[source]¶
Bases:
armi.tests.ArmiTestHelper
History tracker tests that require a Reactor Model.
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_calcMGFluence()[source]¶
This test confirms that mg flux has many groups when loaded with the history tracker.
armi.bookeeping.db.hdf.hdfDB.readBlocksHistory requires historical_values[historical_indices] to be cast as a list to read more than the first energy group. This test shows that this behavior is preserved.
- class armi.bookkeeping.tests.test_historyTracker.TestHistoryTrackerNoModel(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
History tracker tests that do not require a Reactor Model.
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.