armi.cases.tests.test_cases module
Unit tests for Case and CaseSuite objects.
- class armi.cases.tests.test_cases.TestArmiCase(methodName='runTest')[source]
Bases:
TestCaseClass 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.
- test_run()[source]
Test running a case.
Test Case: Test case settings object is created, settings can be edited, and case can run. T_ARMI_SETTING
- class armi.cases.tests.test_cases.TestCaseSuiteDependencies(methodName='runTest')[source]
Bases:
TestCaseCaseSuite 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.
- test_dependenciesWithObscurePaths()[source]
Test directory dependence for strangely-written file paths (escape characters).
- test_explicitDependency()[source]
Test dependencies for case suites.
Test Case: Dependence allows for one case to start after the completion of another. T_ARMI_CASE_SUITE
- class armi.cases.tests.test_cases.TestCaseSuiteComparison(methodName='runTest')[source]
Bases:
TestCaseCaseSuite.compare() 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.
- class armi.cases.tests.test_cases.TestExtraInputWriting(methodName='runTest')[source]
Bases:
TestCaseMake 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:
InterfaceA little test interface that adds a setting that we need to test copyInterfaceInputs with multiple files.
Construct an interface.
The
randcsarguments are required, but may beNone, where appropriate for the specificInterfaceimplementation.- 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.TestPluginWithDuplicateSetting[source]
Bases:
ArmiPlugin
- class armi.cases.tests.test_cases.TestPluginForCopyInterfacesMultipleFiles[source]
Bases:
ArmiPlugin
- class armi.cases.tests.test_cases.TestCopyInterfaceInputs(methodName='runTest')[source]
Bases:
TestCaseEnsure 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.