summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-09 17:46:13 -0400
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-10-11 17:55:06 -0400
commita53df2b59b47fbb28c8599df083c65b8ba3cef62 (patch)
treefdafb209d432e7181a67751480918dfd175701ec
parent314ab4d1584838e0e8829991575b7fbd85d8a09b (diff)
stop using GetContactInfo()
-rw-r--r--tests/twisted/vcard/get-contact-info.py12
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 e7d828421..f546c350f 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@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)