diff options
-rwxr-xr-x | test/test-client.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |