[telepathy-gabble/master] test-location.py: test that location is supported by the Contacts interface

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Aug 14 05:44:28 PDT 2009


---
 tests/twisted/test-location.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/test-location.py b/tests/twisted/test-location.py
index 88e3598..fceb5bd 100644
--- a/tests/twisted/test-location.py
+++ b/tests/twisted/test-location.py
@@ -173,6 +173,12 @@ def test(q, bus, conn, stream):
     assertLength(1, locations)
     assertEquals(locations[bob_handle], location)
 
+    # check that Contacts interface supports location
+    assert conn.Contacts.GetContactAttributes([bob_handle],
+        [cs.CONN_IFACE_LOCATION], False) == { bob_handle:
+            { cs.CONN_IFACE_LOCATION + '/location': location,
+              'org.freedesktop.Telepathy.Connection/contact-id': 'bob at foo.com'}}
+
     # Try to set our location by passing a valid with an invalid type (lat is
     # supposed to be a double)
     try:
-- 
1.5.6.5



More information about the telepathy-commits mailing list