[Telepathy-commits] [telepathy-gabble/master] olpc-activity-search.py: check if the BuddyInfo.PropertiesChanged signal is fired when buddies join activities
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:25 PDT 2008
20080630121121-7fe3f-c17fd99bd1483bd4b92b75cec33d3fac36726450.gz
---
tests/twisted/olpc/olpc-activity-search.py | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/twisted/olpc/olpc-activity-search.py b/tests/twisted/olpc/olpc-activity-search.py
index 8f38f73..7b1797d 100644
--- a/tests/twisted/olpc/olpc-activity-search.py
+++ b/tests/twisted/olpc/olpc-activity-search.py
@@ -370,13 +370,18 @@ def test(q, bus, conn, stream):
rule['action'] ='error'
stream.send(message)
- # FIXME: BuddyInfo.PropertiesChanged
# FIXME: BuddyInfo.ActivitiesChanged
+ view_event, buddy_info_event = q.expect_many(
+ EventPattern('dbus-signal', signal='BuddiesChanged'),
+ EventPattern('dbus-signal', signal='PropertiesChanged'))
- event = q.expect('dbus-signal', signal='BuddiesChanged')
- added, removed = event.args
+ added, removed = view_event.args
assert conn.InspectHandles(1, added) == ['marcel at localhost']
+ contact, properties = buddy_info_event.args
+ assert contact == added[0]
+ assert properties == {'color': '#CCCCCC,#DDDDDD'}
+
# remove one activity from view 0
message = domish.Element((None, 'message'))
message['from'] = 'gadget.localhost'
--
1.5.6.5
More information about the Telepathy-commits
mailing list