[telepathy-gabble/master] tubes/crash-on-list-channels.py: use make_result_iq to create roster reply
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Jul 3 03:47:28 PDT 2009
---
tests/twisted/tubes/crash-on-list-channels.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/twisted/tubes/crash-on-list-channels.py b/tests/twisted/tubes/crash-on-list-channels.py
index 2b099b2..6a2ae1f 100644
--- a/tests/twisted/tubes/crash-on-list-channels.py
+++ b/tests/twisted/tubes/crash-on-list-channels.py
@@ -6,7 +6,7 @@ DBus tube asserted.
import dbus
from servicetest import call_async, EventPattern
-from gabbletest import exec_test, sync_stream
+from gabbletest import exec_test, sync_stream, make_result_iq
import ns
import constants as cs
@@ -40,11 +40,11 @@ def test(q, bus, conn, stream):
event = q.expect('stream-iq', iq_type='get',
query_ns=ns.DISCO_INFO,
to=('%s/Bob' % jid))
- result = event.stanza
- result['type'] = 'result'
assert event.query['node'] == \
'http://example.com/ICantBelieveItsNotTelepathy#1.2.3'
- feature = event.query.addElement('feature')
+ result = make_result_iq(stream, event.stanza)
+ query = result.firstChildElement()
+ feature = query.addElement('feature')
feature['var'] = ns.TUBES
stream.send(result)
--
1.5.6.5
More information about the telepathy-commits
mailing list