telepathy-gabble: caps_helper: factor out get_contacts_capabilities_sync()
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Fri Oct 11 14:58:34 PDT 2013
Module: telepathy-gabble
Branch: master
Commit: dd1181ac574685f224351248183f82a8b6551841
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=dd1181ac574685f224351248183f82a8b6551841
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Wed Oct 9 11:44:18 2013 -0400
caps_helper: factor out get_contacts_capabilities_sync()
---
tests/twisted/caps_helper.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tests/twisted/caps_helper.py b/tests/twisted/caps_helper.py
index c573b74..fdecfa2 100644
--- a/tests/twisted/caps_helper.py
+++ b/tests/twisted/caps_helper.py
@@ -315,6 +315,9 @@ def presence_and_disco(q, conn, stream, contact, disco,
return h
+def get_contacts_capabilities_sync(conn, contacts):
+ return conn.ContactCapabilities.GetContactCapabilities(contacts)
+
def send_presence(q, conn, stream, contact, caps, initial=True, show=None):
h = conn.get_contact_handle_sync(contact)
@@ -326,7 +329,7 @@ def send_presence(q, conn, stream, contact, caps, initial=True, show=None):
(2, u'available', 'hello')}])
# no special capabilities
- for rcc in conn.ContactCapabilities.GetContactCapabilities([h])[h]:
+ for rcc in get_contacts_capabilities_sync(conn, [h])[h]:
assertEquals(cs.CHANNEL_TYPE_TEXT, rcc[0].get(cs.CHANNEL_TYPE))
# send updated presence with caps info
More information about the telepathy-commits
mailing list