armi.bookkeeping.report.tests.test_report module

Really basic tests of the report Utils.

class armi.bookkeeping.report.tests.test_report.TestReportingUtils(methodName='runTest')[source]

Bases: 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_getSystemInfoLinux()[source]

Test _getSystemInfoLinux() on any operating system, by mocking the system calls.

test_getSystemInfoWindows(mockSubprocess)[source]

Test _getSystemInfoWindows() on any operating system, by mocking the system call.

test_getSystemInfoMac(mockSubprocess)[source]

Test _getSystemInfoMac() on any operating system, by mocking the system call.

test_getSystemInfo()[source]

Basic sanity check of getSystemInfo() running in the wild.

This test should pass if it is run on Window or mainstream Linux distros. But we expect this to fail if the test is run on some other OS.

test_getNodeName()[source]

Test that the getNodeName() method returns a non-empty string.

It is hard to know what string SHOULD be return here, and it would depend on how the OS is set up on your machine or cluster. But this simple test needs to pass as-is on Windows and Linux.

class armi.bookkeeping.report.tests.test_report.TestReport(methodName='runTest')[source]

Bases: 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_setData()[source]
test_getData()[source]
test_reactorSpecificReporting()[source]

Test a number of reporting utils that require reactor/core information.

test_writeWelcomeHeaders()[source]
class armi.bookkeeping.report.tests.test_report.TestReportInterface(methodName='runTest')[source]

Bases: 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_printReports()[source]

Testing printReports method.

test_writeReports()[source]

Test writing html reports.

test_distributableReportInt()[source]
test_interactBOLReportInt()[source]
test_interactEveryNode()[source]
test_interactBOC()[source]
test_interactEOC()[source]
test_interactEOL()[source]