[Telepathy-commits] [telepathy-salut/master] tubes-to-nonexistant-ids.py: 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/tubes-to-nonexistant-ids.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/avahi/tubes-to-nonexistant-ids.py b/tests/twisted/avahi/tubes-to-nonexistant-ids.py
index 803f6f8..409c02c 100644
--- a/tests/twisted/avahi/tubes-to-nonexistant-ids.py
+++ b/tests/twisted/avahi/tubes-to-nonexistant-ids.py
@@ -27,7 +27,7 @@ def test(q, bus, conn):
     except dbus.DBusException, e:
         assert e.get_dbus_name() == NOT_AVAILABLE, e.get_dbus_name()
     else:
-        assert False
+        assert False, "Should raise NotAvailable error"
 
     requestotron = dbus.Interface(conn, CONN_IFACE_REQUESTS)
 
@@ -41,7 +41,7 @@ def test(q, bus, conn):
     except dbus.DBusException, e:
         assert e.get_dbus_name() == NOT_AVAILABLE, e.get_dbus_name()
     else:
-        assert False
+        assert False, "Should raise NotAvailable error"
 
     conn.Disconnect()
     q.expect('dbus-signal', signal='StatusChanged', args=[2, 1])
-- 
1.5.6.5




More information about the telepathy-commits mailing list