diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2015-09-01 10:23:10 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2015-09-01 10:23:10 -0500 |
commit | 75466a831a92ab136a9cc2b6b875d20f0b00a889 (patch) | |
tree | e83728ee5a1f67e072e4d6fba0b7c71ecb352253 /testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py | |
parent | 824879eb85a1065e842930485778a594b914c77f (diff) | |
parent | 3259a1611edf97241b3a2d1bd585185907fe4e9c (diff) | |
download | bcfg2-75466a831a92ab136a9cc2b6b875d20f0b00a889.tar.gz bcfg2-75466a831a92ab136a9cc2b6b875d20f0b00a889.tar.bz2 bcfg2-75466a831a92ab136a9cc2b6b875d20f0b00a889.zip |
Merge branch 'rules-replace_name' of https://github.com/AlexanderS/bcfg2
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py index 9b4a6af88..3c660099e 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestDefaults.py @@ -22,6 +22,10 @@ from Testinterfaces import TestGoalValidator class TestDefaults(TestRules, TestGoalValidator): test_obj = Defaults + def setUp(self): + TestRules.setUp(self) + set_setup_default("defaults_replace_name", True) + def get_obj(self, *args, **kwargs): return TestRules.get_obj(self, *args, **kwargs) @@ -91,3 +95,8 @@ class TestDefaults(TestRules, TestGoalValidator): def test_regex(self): self._do_test('regex') + + def test_replace_name(self): + Bcfg2.Options.setup.defaults_replace_name = True + self._do_test('replace_name') + Bcfg2.Options.setup.defaults_replace_name = False |