summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-11 14:35:24 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-11 14:36:07 +0100
commit32e5d04eb7d2dfcc883f28c741204c60c14f1117 (patch)
treeecd39041d5a372ab25337266b5739a5e55f42ad9
parent449d115768fff1c3f6598224be6caf9342097648 (diff)
caps/receive-jingle.py: produce better diagnostics on failure
-rw-r--r--tests/twisted/caps/receive-jingle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/twisted/caps/receive-jingle.py b/tests/twisted/caps/receive-jingle.py
index 3d7a8086e..01a81072d 100644
--- a/tests/twisted/caps/receive-jingle.py
+++ b/tests/twisted/caps/receive-jingle.py
@@ -4,8 +4,8 @@ Test receiving another contact's capabilities.
import dbus
-from servicetest import EventPattern
-from gabbletest import exec_test, make_result_iq, make_presence
+from servicetest import EventPattern, assertEquals, sync_dbus
+from gabbletest import exec_test, make_result_iq, make_presence, sync_stream
import constants as cs
icaps_attr = cs.CONN_IFACE_CAPS + "/caps"
@@ -119,8 +119,8 @@ def test(q, bus, conn, stream):
0)]])
# Contact went offline and the handle is now invalid
- assert conn.Contacts.GetContactAttributes(
- [2], [cs.CONN_IFACE_CAPS], False) == {}
+ assertEquals({}, conn.Contacts.GetContactAttributes(
+ [2], [cs.CONN_IFACE_CAPS], False))
# regression test for fd.o #15198: getting caps of invalid handle crashed
try: