[Telepathy-commits] [telepathy-gabble/master] olpc-buddy-search: check some properties returned by CreateChannel
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Oct 8 09:44:54 PDT 2008
---
tests/twisted/olpc/olpc-buddy-search.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/olpc/olpc-buddy-search.py b/tests/twisted/olpc/olpc-buddy-search.py
index 03e4c5c..c97573f 100644
--- a/tests/twisted/olpc/olpc-buddy-search.py
+++ b/tests/twisted/olpc/olpc-buddy-search.py
@@ -141,8 +141,12 @@ def test(q, bus, conn, stream):
stream.send(reply)
view_path = return_event.value[0]
+ props = return_event.value[1]
view1 = bus.get_object(conn.bus_name, view_path)
+ assert props['org.laptop.Telepathy.Channel.Type.BuddyView.Properties'] == {}
+ assert props['org.laptop.Telepathy.Channel.Type.BuddyView.Alias'] == ''
+
# check org.freedesktop.Telepathy.Channel D-Bus properties
props = view1.GetAll(
'org.freedesktop.Telepathy.Channel',
@@ -238,8 +242,12 @@ def test(q, bus, conn, stream):
stream.send(reply)
view_path = return_event.value[0]
+ props = return_event.value[1]
view2 = bus.get_object(conn.bus_name, view_path)
+ assert props['org.laptop.Telepathy.Channel.Type.BuddyView.Properties'] == dbus.Dictionary({'color': '#AABBCC,#001122'}, signature='sv')
+ assert props['org.laptop.Telepathy.Channel.Type.BuddyView.Alias'] == ''
+
# check org.laptop.Telepathy.Channel.Type.BuddyView D-Bus properties
props = view2.GetAll(
'org.laptop.Telepathy.Channel.Type.BuddyView',
@@ -344,8 +352,12 @@ def test(q, bus, conn, stream):
stream.send(reply)
view_path = return_event.value[0]
+ props = return_event.value[1]
view3 = bus.get_object(conn.bus_name, view_path)
+ assert props['org.laptop.Telepathy.Channel.Type.BuddyView.Properties'] == {}
+ assert props['org.laptop.Telepathy.Channel.Type.BuddyView.Alias'] == 'tom'
+
# check org.laptop.Telepathy.Channel.Type.BuddyView D-Bus properties
props = view3.GetAll(
'org.laptop.Telepathy.Channel.Type.BuddyView',
--
1.5.6.5
More information about the Telepathy-commits
mailing list