armi.tests.test_interfaces module

Tests the Interface

class armi.tests.test_interfaces.DummyInterface(r, cs)[source]

Bases: armi.interfaces.Interface

Construct an interface.

The r and cs arguments are required, but may be None, where appropriate for the specific Interface implementation.

Parameters
  • r (Reactor) – A reactor to attach to

  • cs (Settings) – Settings object to use

Raises

RuntimeError – Interfaces derived from Interface must define their name

name: Optional[str] = 'Dummy'

The name of the interface. This is undefined for the base class, and must be overridden by any concrete class that extends this one.

class armi.tests.test_interfaces.TestCodeInterface(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test Code interface.

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

Tests notification of detail points.

test_enabled()[source]

Test turning interfaces on and off.

class armi.tests.test_interfaces.TestTextProcessor(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test Text processor.

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

Test fsearch in re mode.

test_fsearch_text()[source]

Test fsearch in text mode.