From 544e05a16e55dad7e666baabfb665997a79d6580 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 16 Oct 2012 18:31:43 +0100 Subject: Slightly better test coverage --- test/test-client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test-client.py b/test/test-client.py index dc2be4e..c73fb4e 100755 --- a/test/test-client.py +++ b/test/test-client.py @@ -563,6 +563,8 @@ class TestDBusBindings(unittest.TestCase): self.iface.RaiseDBusExceptionNoTraceback() except Exception as e: self.assertTrue(isinstance(e, dbus.DBusException), e.__class__) + self.assertEqual(e.get_dbus_name(), + 'com.example.Networking.ServerError') self.assertEqual(str(e), 'com.example.Networking.ServerError: ' 'Server not responding') @@ -573,6 +575,8 @@ class TestDBusBindings(unittest.TestCase): self.iface.RaiseDBusExceptionWithTraceback() except Exception as e: self.assertTrue(isinstance(e, dbus.DBusException), e.__class__) + self.assertEqual(e.get_dbus_name(), + 'com.example.Misc.RealityFailure') self.assertTrue(str(e).startswith('com.example.Misc.RealityFailure: ' 'Traceback '), 'Wanted a traceback but got:\n%s' % str(e)) -- cgit v1.2.1