diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-06-29 15:19:17 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-06-29 19:16:34 +0200 |
commit | 57006507c68b99c5e9ee6dcfb526aaae02f1e9b8 (patch) | |
tree | 7e1b134c22537f0fd0741ca9d144636c86497ada /tests | |
parent | 7172ce231f4cef66465a4384399460e00b717d41 (diff) |
Fix assertRaises invocationsv0.0.10
We had the arguments reversed
Closes: #790372
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_distro.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_distro.py b/tests/test_distro.py index 88fa984..409c1c6 100644 --- a/tests/test_distro.py +++ b/tests/test_distro.py @@ -36,10 +36,10 @@ class TestDistro(unittest.TestCase): self.assertEqual(Distro.service_blacklist, set()) self.assertIsNone(Distro.id) # Pure virtual methods - self.assertRaises(Distro.pkg, None, None, NotImplementedError) - self.assertRaises(Distro.pkg_by_file, None, NotImplementedError) - self.assertRaises(Distro.restart_service_cmd, None, NotImplementedError) - self.assertRaises(Distro.restart_service, None, NotImplementedError) + self.assertRaises(NotImplementedError, Distro.pkg, None) + self.assertRaises(NotImplementedError, Distro.pkg_by_file, None) + self.assertRaises(NotImplementedError, Distro.restart_service_cmd, None) + self.assertRaises(NotImplementedError, Distro.restart_service, None) # Lookup methods self.assertEqual(Distro.pkg_services(Pkg), []) self.assertEqual(Distro.pkg_service_blacklist(Pkg), []) |