diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-09 17:46:13 -0400 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-11 17:55:06 -0400 |
commit | a53df2b59b47fbb28c8599df083c65b8ba3cef62 (patch) | |
tree | fdafb209d432e7181a67751480918dfd175701ec | |
parent | 314ab4d1584838e0e8829991575b7fbd85d8a09b (diff) |
stop using GetContactInfo()
-rw-r--r-- | 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 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) |