[telepathy-gabble/master] check that newly created search channels are in Requests.Channels

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Aug 24 08:48:33 PDT 2009


---
 tests/twisted/search/unextended.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/search/unextended.py b/tests/twisted/search/unextended.py
index 25b5173..ad3906c 100644
--- a/tests/twisted/search/unextended.py
+++ b/tests/twisted/search/unextended.py
@@ -47,6 +47,11 @@ def complete_search(q, bus, conn, requests, stream, server):
         pformat(props)
     assert cs.CONTACT_SEARCH_STATE not in props, pformat(props)
 
+    # check that channel is listed in Requests.Channels
+    channels = conn.Get(cs.CONN_IFACE_REQUESTS, 'Channels',
+        dbus_interface=cs.PROPERTIES_IFACE)
+    assert (path, props) in channels
+
     c = make_channel_proxy(conn, path, 'Channel')
     c_props = dbus.Interface(c, cs.PROPERTIES_IFACE)
     c_search = dbus.Interface(c, cs.CHANNEL_TYPE_CONTACT_SEARCH)
-- 
1.5.6.5




More information about the telepathy-commits mailing list