[Telepathy-commits] [telepathy-gabble/master] change-notifications.py: remove current-activity test. We'll create a new test file containing all the current-activity related tests
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Sep 26 10:02:27 PDT 2008
20080702082406-7fe3f-1c23f09c05eb591b120276a203694217e43b3eb2.gz
---
tests/twisted/olpc/change-notifications.py | 27 +--------------------------
1 files changed, 1 insertions(+), 26 deletions(-)
diff --git a/tests/twisted/olpc/change-notifications.py b/tests/twisted/olpc/change-notifications.py
index 6fe22c9..121308a 100644
--- a/tests/twisted/olpc/change-notifications.py
+++ b/tests/twisted/olpc/change-notifications.py
@@ -1,6 +1,7 @@
"""
test OLPC Buddy properties change notifications
"""
+# FIXME: merge this file to other tests ?
import dbus
@@ -76,31 +77,5 @@ def test(q, bus, conn, stream):
assert props == {'color' : '#005FE4,#00A0FF'}
- # Alice changes now her current-activity
- message = domish.Element(('jabber:client', 'message'))
- message['from'] = 'alice at localhost'
- message['to'] = 'test at localhost'
- event = message.addElement(('http://jabber.org/protocol/pubsub#event',
- 'event'))
-
- items = event.addElement((None, 'items'))
- items['node'] = NS_OLPC_CURRENT_ACTIVITY
- item = items.addElement((None, 'item'))
-
- activity = item.addElement((NS_OLPC_CURRENT_ACTIVITY, 'activity'))
- activity['room'] = 'testroom at conference.localhost'
- activity['type'] = 'testactivity'
-
- stream.send(message)
-
- event = q.expect('dbus-signal', signal='CurrentActivityChanged')
- contact = event.args[0]
- activity = event.args[1]
- room = event.args[2]
- room_id = conn.InspectHandles(2, [room])[0]
-
- assert activity == 'testactivity'
- assert room_id == 'testroom at conference.localhost'
-
if __name__ == '__main__':
exec_test(test)
--
1.5.6.5
More information about the Telepathy-commits
mailing list