[Telepathy-commits] [telepathy-gabble/master] Location: Test: check that the D-Bus properties are implemented

Alban Crequy alban.crequy at collabora.co.uk
Sun Feb 1 05:23:56 PST 2009


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

diff --git a/tests/twisted/test-location.py b/tests/twisted/test-location.py
index ee26603..09eff4a 100644
--- a/tests/twisted/test-location.py
+++ b/tests/twisted/test-location.py
@@ -1,15 +1,26 @@
 from gabbletest import exec_test, make_result_iq
 from servicetest import call_async
 
+location_iface = \
+    'org.freedesktop.Telepathy.Connection.Interface.Location.DRAFT'
+
 def test(q, bus, conn, stream):
     # hack
     import dbus
     conn.interfaces['Location'] = \
-        dbus.Interface(conn, 'org.freedesktop.Telepathy.Connection.Interface.Location.DRAFT')
+        dbus.Interface(conn, location_iface)
 
     conn.Connect()
     q.expect('dbus-signal', signal='StatusChanged', args=[0, 1])
 
+    # check location properties
+    properties = conn.GetAll(
+            location_iface,
+            dbus_interface='org.freedesktop.DBus.Properties')
+
+    assert properties.get('LocationAccessControlTypes') is not None
+    assert properties.get('LocationAccessControl') is not None
+
     # discard activities request
     q.expect('stream-iq', iq_type='set',
         query_ns='http://jabber.org/protocol/pubsub')
-- 
1.5.6.5




More information about the Telepathy-commits mailing list