diff options
author | Scott Moser <smoser@brickies.net> | 2016-07-29 16:59:00 -0400 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-07-29 16:59:00 -0400 |
commit | eed7fccdb9e59e5b2cc9e6d94af06f075c6ced67 (patch) | |
tree | d57485d9a41e0e89dafd56e6464b0a33db7c5ed8 /tests/unittests/test_handler | |
parent | 4264783ae982e48d184e5991a67deab6f63a9054 (diff) | |
download | vyos-cloud-init-eed7fccdb9e59e5b2cc9e6d94af06f075c6ced67.tar.gz vyos-cloud-init-eed7fccdb9e59e5b2cc9e6d94af06f075c6ced67.zip |
fix pep8 errors in mcollective unit tests
Just fix the pep8 errors added in previous commit.
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r-- | tests/unittests/test_handler/test_handler_mcollective.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/unittests/test_handler/test_handler_mcollective.py b/tests/unittests/test_handler/test_handler_mcollective.py index 6aefb93d..8fa0147a 100644 --- a/tests/unittests/test_handler/test_handler_mcollective.py +++ b/tests/unittests/test_handler/test_handler_mcollective.py @@ -49,7 +49,7 @@ class TestConfig(t_help.FilesystemMockingTestCase): self.tmp, "./" + cc_mcollective.SERVER_CFG) self.pubcert_file = os.path.join( self.tmp, "./" + cc_mcollective.PUBCERT_FILE) - self.pricert_file= os.path.join( + self.pricert_file = os.path.join( self.tmp, self.tmp, "./" + cc_mcollective.PRICERT_FILE) def test_basic_config(self): @@ -86,7 +86,8 @@ class TestConfig(t_help.FilesystemMockingTestCase): cc_mcollective.configure(config=cfg, server_cfg=self.server_cfg) self.assertTrue(os.path.exists(self.server_cfg)) self.assertTrue(os.path.exists(self.server_cfg + ".old")) - self.assertEqual(util.load_file(self.server_cfg + ".old"), STOCK_CONFIG) + self.assertEqual(util.load_file(self.server_cfg + ".old"), + STOCK_CONFIG) def test_existing_updated(self): cfg = {'loglevel': 'warn'} @@ -101,9 +102,9 @@ class TestConfig(t_help.FilesystemMockingTestCase): 'public-cert': "this is my public-certificate", 'private-cert': "secret private certificate"} - cc_mcollective.configure(config=cfg, - server_cfg=self.server_cfg, pricert_file=self.pricert_file, - pubcert_file=self.pubcert_file) + cc_mcollective.configure( + config=cfg, server_cfg=self.server_cfg, + pricert_file=self.pricert_file, pubcert_file=self.pubcert_file) found = configobj.ConfigObj(self.server_cfg) |