armi.cases.tests.test_cases module¶
Unit tests for Case and CaseSuite objects.
- class armi.cases.tests.test_cases.TestArmiCase(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Class to tests armi.cases.Case methods.
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.
- class armi.cases.tests.test_cases.TestCaseSuiteDependencies(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
CaseSuite tests.
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_clone()[source]¶
If you pass an invalid path, the clone can’t happen, but it won’t do any damage either.
- class armi.cases.tests.test_cases.TestExtraInputWriting(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Make sure extra inputs from interfaces are written.
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.
- class armi.cases.tests.test_cases.MultiFilesInterfaces(r, cs)[source]¶
Bases:
armi.interfaces.Interface
A little test interface that adds a setting that we need to test copyInterfaceInputs with multiple files.
Construct an interface.
The
r
andcs
arguments are required, but may beNone
, where appropriate for the specificInterface
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
- class armi.cases.tests.test_cases.TestPluginForCopyInterfacesMultipleFiles[source]¶
Bases:
armi.plugins.ArmiPlugin
- class armi.cases.tests.test_cases.TestCopyInterfaceInputs(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Ensure file path is found and updated properly.
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.