[Telepathy-commits] [telepathy-gabble/master] olpc-buddy-search.py: be sure the view contains the right members

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:10 PDT 2008


20080522105632-7fe3f-91c7f08696e6f8eb554521a603dac7585d32430b.gz
---
 tests/twisted/olpc/olpc-buddy-search.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/olpc/olpc-buddy-search.py b/tests/twisted/olpc/olpc-buddy-search.py
index 723fa03..bc49fde 100644
--- a/tests/twisted/olpc/olpc-buddy-search.py
+++ b/tests/twisted/olpc/olpc-buddy-search.py
@@ -137,6 +137,7 @@ def test(q, bus, conn, stream):
     view_path = return_event.value[0]
     view0 = bus.get_object(conn.bus_name, view_path)
     view0_iface = dbus.Interface(view0, 'org.laptop.Telepathy.BuddyView')
+    view0_group_iface = dbus.Interface(view0, 'org.freedesktop.Telepathy.Channel.Interface.Group')
 
     event = q.expect('dbus-signal', signal='PropertiesChanged')
     handle, props = event.args
@@ -226,6 +227,10 @@ def test(q, bus, conn, stream):
     handle = added[0]
     assert conn.InspectHandles(1, [handle])[0] == 'oscar at localhost'
 
+    members = view0_group_iface.GetMembers()
+    members = sorted(conn.InspectHandles(1, members))
+    assert members == ['bob at localhost', 'oscar at localhost']
+
     # close view 0
     call_async(q, view0_iface, 'Close')
     event, _ = q.expect_many(
-- 
1.5.6.5




More information about the Telepathy-commits mailing list