armi.settings.tests.test_settings module¶
Tests for new settings system with plugin import.
- class armi.settings.tests.test_settings.DummyPlugin1[source]¶
Bases:
armi.plugins.ArmiPlugin
- class armi.settings.tests.test_settings.DummyPlugin2[source]¶
Bases:
armi.plugins.ArmiPlugin
- class armi.settings.tests.test_settings.PluginAddsOptions[source]¶
Bases:
armi.plugins.ArmiPlugin
- class armi.settings.tests.test_settings.TestCaseSettings(methodName='runTest')[source]¶
Bases:
unittest.case.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.
- class armi.settings.tests.test_settings.TestAddingOptions(methodName='runTest')[source]¶
Bases:
unittest.case.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.
- class armi.settings.tests.test_settings.TestSettings2(methodName='runTest')[source]¶
Bases:
unittest.case.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_getFailures()[source]¶
Make sure the correct error is thrown when getting a nonexistent setting.
- test_modified()[source]¶
Prove that using the modified() method does not mutate the original object.
- test_copySetting()[source]¶
Ensure that when we copy a Setting() object, the result is sound.
Notes
In particuar, self.schema and self._customSchema on a Setting object are removed by Setting.__getstate__, and that has been a problem in the past.
- class armi.settings.tests.test_settings.TestSettingsUtils(methodName='runTest')[source]¶
Bases:
unittest.case.TestCase
Tests for utility functions.
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.settings.tests.test_settings.TestFlagListSetting(methodName='runTest')[source]¶
Bases:
unittest.case.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.