summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-23 13:59:53 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-24 12:12:52 +0100
commit3f0c7d732a38d709fa571f46b0a321efd31a6ab8 (patch)
treee58584a17b708df538222794af279acf89b93c92
parentc4fb01ce2d34a78ca2fafd159288f5270d688200 (diff)
downloadtelepathy-haze-3f0c7d732a38d709fa571f46b0a321efd31a6ab8.tar.gz
Fix more uses of RequestHandles
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389 Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
-rw-r--r--tests/twisted/roster/subscribe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/twisted/roster/subscribe.py b/tests/twisted/roster/subscribe.py
index 102ab71..b1b9aa5 100644
--- a/tests/twisted/roster/subscribe.py
+++ b/tests/twisted/roster/subscribe.py
@@ -33,7 +33,7 @@ def test(q, bus, conn, stream):
assertLength(0, subscribe.Group.GetMembers())
# request subscription
- handle = conn.RequestHandles(cs.HT_CONTACT, ['suggs@night.boat.cairo'])[0]
+ handle = conn.get_contact_handle_sync('suggs@night.boat.cairo')
call_async(q, subscribe.Group, 'AddMembers', [handle], '')
# libpurple puts him on our blist as soon as we've asked; there doesn't
@@ -75,7 +75,7 @@ def test(q, bus, conn, stream):
# put a contact into the *group* explicitly: this shouldn't ask for
# subscription, but it does
- handle = conn.RequestHandles(cs.HT_CONTACT, ['ayria@revenge.world'])[0]
+ handle = conn.get_contact_handle_sync('ayria@revenge.world')
call_async(q, def_group.Group, 'AddMembers', [handle], '')
# libpurple puts her on our blist as soon as we've asked; there doesn't