diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-11-12 14:29:14 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-11-12 14:29:14 -0500 |
commit | 4944bc286970da1ca59b7d57509e51b6817c60c2 (patch) | |
tree | e031e18686f9108e8e627ee12d50b03ec93e6621 /tests | |
parent | fe68049611e12591a632d5264d9ba1b67b0cfa0d (diff) | |
download | vyos-cloud-init-4944bc286970da1ca59b7d57509e51b6817c60c2.tar.gz vyos-cloud-init-4944bc286970da1ca59b7d57509e51b6817c60c2.zip |
test_handler_yum_add_repo: fix broken test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_handler/test_handler_yum_add_repo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unittests/test_handler/test_handler_yum_add_repo.py b/tests/unittests/test_handler/test_handler_yum_add_repo.py index c7fcddc4..8df592f9 100644 --- a/tests/unittests/test_handler/test_handler_yum_add_repo.py +++ b/tests/unittests/test_handler/test_handler_yum_add_repo.py @@ -35,8 +35,8 @@ class TestConfig(helpers.FilesystemMockingTestCase): } self.patchUtils(self.tmp) cc_yum_add_repo.handle('yum_add_repo', cfg, None, LOG, []) - with self.assertRaises(IOError): - util.load_file("/etc/yum.repos.d/epel_testing.repo") + self.assertRaises(IOError, util.load_file, + "/etc/yum.repos.d/epel_testing.repo") def test_write_config(self): cfg = { |