From 57006507c68b99c5e9ee6dcfb526aaae02f1e9b8 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 29 Jun 2015 15:19:17 +0200 Subject: Fix assertRaises invocations We had the arguments reversed Closes: #790372 --- tests/test_distro.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_distro.py') 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), []) -- cgit v1.2.3