[Telepathy-commits] [telepathy-gabble/master] change-notifications.py: check if that's the right contact in the PropertiesChanged signal args
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:31 PDT 2008
20080702154306-7fe3f-beebee377996afc1075e02a79014260ce02bcb48.gz
---
tests/twisted/olpc/change-notifications.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/tests/twisted/olpc/change-notifications.py b/tests/twisted/olpc/change-notifications.py
index 6df73fb..70b909c 100644
--- a/tests/twisted/olpc/change-notifications.py
+++ b/tests/twisted/olpc/change-notifications.py
@@ -35,15 +35,16 @@ def test(q, bus, conn, stream):
acknowledge_iq(stream, iq_event.stanza)
announce_gadget(q, stream, disco_event.stanza)
+ handles = {}
+
+ handles['alice'] = conn.RequestHandles(1, ['alice at localhost'])[0]
+
# Alice, one our friends changed her properties
send_buddy_changed_properties_msg(stream, 'alice at localhost',
{'color': ('str', '#005FE4,#00A0FF')})
- event = q.expect('dbus-signal', signal='PropertiesChanged')
- contact = event.args[0]
- props = event.args[1]
-
- assert props == {'color' : '#005FE4,#00A0FF'}
+ event = q.expect('dbus-signal', signal='PropertiesChanged',
+ args=[handles['alice'], {'color' : '#005FE4,#00A0FF'}])
if __name__ == '__main__':
exec_test(test)
--
1.5.6.5
More information about the Telepathy-commits
mailing list