[Telepathy-commits] [telepathy-gabble/master] text/initiate.py: improve output if assertions fail
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Nov 3 11:20:47 PST 2008
20080730154545-53eee-47b7a9bc0e97614e924f039361a538ed95676ba0.gz
---
tests/twisted/text/initiate.py | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/text/initiate.py b/tests/twisted/text/initiate.py
index 9cac183..d5f1c07 100644
--- a/tests/twisted/text/initiate.py
+++ b/tests/twisted/text/initiate.py
@@ -31,11 +31,13 @@ def test(q, bus, conn, stream):
text_chan = bus.get_object(conn.bus_name, ret.value[0])
- assert sig.args[0] == ret.value[0]
- assert sig.args[1] == u'org.freedesktop.Telepathy.Channel.Type.Text'
+ assert sig.args[0] == ret.value[0], \
+ (sig.args[0], ret.value[0])
+ assert sig.args[1] == u'org.freedesktop.Telepathy.Channel.Type.Text',\
+ sig.args[1]
# check that handle type == contact handle
- assert sig.args[2] == 1
- assert sig.args[3] == foo_handle
+ assert sig.args[2] == 1, sig.args[1]
+ assert sig.args[3] == foo_handle, (sig.args[3], foo_handle)
assert sig.args[4] == True # suppress handler
# Exercise basic Channel Properties from spec 0.17.7
--
1.5.6.5
More information about the Telepathy-commits
mailing list