telepathy-haze: Fix more uses of RequestHandles

Simon McVittie smcv at kemper.freedesktop.org
Tue Sep 24 04:14:09 PDT 2013


Module: telepathy-haze
Branch: master
Commit: 3f0c7d732a38d709fa571f46b0a321efd31a6ab8
URL:    http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=3f0c7d732a38d709fa571f46b0a321efd31a6ab8

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Mon Sep 23 13:59:53 2013 +0100

Fix more uses of RequestHandles

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49389
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>

---

 tests/twisted/roster/subscribe.py |    4 ++--
 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 at night.boat.cairo'])[0]
+    handle = conn.get_contact_handle_sync('suggs at 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 at revenge.world'])[0]
+    handle = conn.get_contact_handle_sync('ayria at 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



More information about the telepathy-commits mailing list