armi.tests.test_runLog module

Tests of the runLog tooling

class armi.tests.test_runLog.TestRunLog(methodName='runTest')[source]

Bases: unittest.case.TestCase

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

Test that the log verbosity can be set with an integer.

test_setVerbosityFromString()[source]

Test that the log verbosity can be set with a string.

test_verbosityOutOfRange()[source]

Test that the log verbosity setting resets to a canonical value when it is out of range

test_invalidSetVerbosityByString()[source]

Test that the log verbosity setting fails if the integer is invalid.

test_parentRunLogging()[source]

A basic test of the logging of the parent runLog

test_warningReport()[source]

A simple test of the warning tracking and reporting logic

test_warningReportInvalid()[source]

A test of warningReport in an invalid situation

test_closeLogging()[source]

A basic test of the close() functionality

test_setVerbosity()[source]

Let’s test the setVerbosity() method carefully

test_setVerbosityBeforeStartLog()[source]

The user/dev my accidentally call setVerbosity() before startLog(), this should be mostly supportable

test_callingStartLogMultipleTimes()[source]

calling startLog() multiple times will lead to multiple output files, but logging should still work

test_concatenateLogs()[source]

simple test of the concat logs function

test_createLogDir()[source]

Test the createLogDir() method

class armi.tests.test_runLog.TestRunLogger(methodName='runTest')[source]

Bases: unittest.case.TestCase

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_getDuplicatesFilter()[source]
test_allowStopDuplicates()[source]
test_write()[source]