summaryrefslogtreecommitdiff
path: root/tests/twisted/text/respawn.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-23 13:02:31 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 12:12:47 +0100
commit72c8498dc83c855706163b67324b224055e882f1 (patch)
tree702a124e74dea28f5c6618c30160cbeb0a476e8e /tests/twisted/text/respawn.py
parentde9b9319cf7ae45092c9312037c130269fd2d0ab (diff)
downloadtelepathy-haze-72c8498dc83c855706163b67324b224055e882f1.tar.gz
Use get_contact_handle_sync, get_contact_handles_sync
Telepathy 1.0 won't have RequestHandles. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'tests/twisted/text/respawn.py')
-rw-r--r--tests/twisted/text/respawn.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/twisted/text/respawn.py b/tests/twisted/text/respawn.py
index 52b5e88..6cc0266 100644
--- a/tests/twisted/text/respawn.py
+++ b/tests/twisted/text/respawn.py
@@ -14,10 +14,7 @@ def test(q, bus, conn, stream):
self_handle = conn.Properties.Get(cs.CONN, "SelfHandle")
jid = 'foo@bar.com'
- call_async(q, conn, 'RequestHandles', 1, [jid])
-
- event = q.expect('dbus-return', method='RequestHandles')
- foo_handle = event.value[0][0]
+ foo_handle = conn.get_contact_handle_sync(jid)
call_async(q, conn, 'RequestChannel',
'org.freedesktop.Telepathy.Channel.Type.Text', 1, foo_handle, True)