From 572fdfcc9fd3ab84f28665d1e55b4168c5d7b12e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Mon, 21 Oct 2013 15:33:27 +0300 Subject: Fixed GsxError message argument --- tests/test_gsxws.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/test_gsxws.py b/tests/test_gsxws.py index 868a853..e59c1ff 100644 --- a/tests/test_gsxws.py +++ b/tests/test_gsxws.py @@ -41,6 +41,11 @@ class TestErrorFunctions(TestCase): def test_message(self): self.assertRegexpMatches(self.data.message, 'Multiple error messages exist.') + def test_exception(self): + msg = 'Connection failed' + e = GsxError(msg) + self.assertEqual(e.message, msg) + class TestLookupFunctions(RemoteTestCase): def test_component_check(self): -- cgit v1.2.3