telepathy-gabble: stop using GetContactInfo()
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Fri Oct 11 14:58:34 PDT 2013
Module: telepathy-gabble
Branch: master
Commit: a53df2b59b47fbb28c8599df083c65b8ba3cef62
URL: http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=a53df2b59b47fbb28c8599df083c65b8ba3cef62
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Wed Oct 9 17:46:13 2013 -0400
stop using GetContactInfo()
---
tests/twisted/vcard/get-contact-info.py | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/tests/twisted/vcard/get-contact-info.py b/tests/twisted/vcard/get-contact-info.py
index e7d8284..f546c35 100644
--- a/tests/twisted/vcard/get-contact-info.py
+++ b/tests/twisted/vcard/get-contact-info.py
@@ -56,16 +56,8 @@ def test(q, bus, conn, stream):
u'Exemplary Team']),
]
# The request should be satisfied from the cache.
- assertEquals(
- {handle: contact_info}, conn.ContactInfo.GetContactInfo([handle]))
-
- # check the ContactAttribute
- assertEquals(
- {handle: {cs.CONN_IFACE_CONTACT_INFO + '/info': contact_info,
- cs.ATTR_CONTACT_ID: 'bob at foo.com'}},
- conn.Contacts.GetContactAttributes([handle],
- [cs.CONN_IFACE_CONTACT_INFO], False))
-
+ h2asv = conn.Contacts.GetContactAttributes([handle], [cs.CONN_IFACE_CONTACT_INFO], False)
+ assertEquals(contact_info, h2asv[handle][cs.ATTR_CONTACT_INFO])
if __name__ == '__main__':
exec_test(test)
More information about the telepathy-commits
mailing list