[Telepathy-commits] [telepathy-salut/master] test-tube: add error message when asserting False

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Feb 26 11:20:26 PST 2009


---
 tests/twisted/avahi/test-tube.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/avahi/test-tube.py b/tests/twisted/avahi/test-tube.py
index 6f6aef1..66d7b92 100644
--- a/tests/twisted/avahi/test-tube.py
+++ b/tests/twisted/avahi/test-tube.py
@@ -239,7 +239,7 @@ def test(q, bus, conn):
     except dbus.DBusException, e:
         assert e.get_dbus_name() == NOT_IMPLEMENTED, e.get_dbus_name()
     else:
-        assert False
+        assert False, "Should raise NotImplemented error"
 
     # CreateChannel failed, we expect no new channel
     check_conn_properties(q, bus, conn, [old_tubes_channel_properties])
@@ -258,7 +258,8 @@ def test(q, bus, conn):
     except dbus.DBusException, e:
         assert e.get_dbus_name() == INVALID_ARGUMENT, e.get_dbus_name()
     else:
-        assert False
+        assert False, "Should raise InvalidArgument error"
+
     # CreateChannel failed, we expect no new channel
     check_conn_properties(q, bus, conn, [old_tubes_channel_properties])
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list