armi.tests.mockRunLogs module¶
This module contains subclasses of the armi.runLog._RunLog class that can be used to determine whether or not one of the specific methods were called. These should only be used in testing.
- class armi.tests.mockRunLogs.BufferLog(*args, **kwargs)[source]¶
Bases:
armi.runLog._RunLog
Log which captures the output in attributes instead of emitting them.
Used mostly in testing to ensure certain things get output, or to prevent any output from showing.
- class armi.tests.mockRunLogs.LogCounter(*args, **kwargs)[source]¶
Bases:
armi.tests.mockRunLogs.BufferLog
This mock log is used to count the number of times a method was called.
It can be used in testing to make sure a warning was issued, without checking the content of the message.