summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-09 15:49:34 (GMT)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-11 21:55:06 (GMT)
commit13f3aec21c14c6a9379424ed974b4e2ce4a5e95b (patch)
tree719c9ab7a97b8247686c7ce5abce666210900c64
parentc47078c72d7525749e563b113192bce69345e2e1 (diff)
downloadtelepathy-gabble-13f3aec21c14c6a9379424ed974b4e2ce4a5e95b.tar.gz
telepathy-gabble-13f3aec21c14c6a9379424ed974b4e2ce4a5e95b.tar.xz
use GetContactAttributes() to get contact caps
-rw-r--r--tests/twisted/caps_helper.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/twisted/caps_helper.py b/tests/twisted/caps_helper.py
index fdecfa2..b5579a2 100644
--- a/tests/twisted/caps_helper.py
+++ b/tests/twisted/caps_helper.py
@@ -316,7 +316,11 @@ def presence_and_disco(q, conn, stream, contact, disco,
return h
def get_contacts_capabilities_sync(conn, contacts):
- return conn.ContactCapabilities.GetContactCapabilities(contacts)
+ h2asv = conn.Contacts.GetContactAttributes(contacts, [cs.CONN_IFACE_CONTACT_CAPS], False)
+ ret = {}
+ for h in contacts:
+ ret[h] = h2asv[h][cs.ATTR_CONTACT_CAPABILITIES]
+ return ret
def send_presence(q, conn, stream, contact, caps, initial=True, show=None):
h = conn.get_contact_handle_sync(contact)