[Telepathy-commits] [telepathy-gabble/master] olpc-activity-search.py: change activity returned in view3

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


20080612110417-7fe3f-1bcfba246fb92f70b60583cc82955c9bd791c502.gz
---
 tests/twisted/olpc/olpc-activity-search.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/twisted/olpc/olpc-activity-search.py b/tests/twisted/olpc/olpc-activity-search.py
index 5cc8f22..4c422fb 100644
--- a/tests/twisted/olpc/olpc-activity-search.py
+++ b/tests/twisted/olpc/olpc-activity-search.py
@@ -212,8 +212,8 @@ def test(q, bus, conn, stream):
     reply['to'] = 'alice at localhost'
     view = xpath.queryForNodes('/iq/view', reply)[0]
     activity = view.addElement((None, "activity"))
-    activity['room'] = 'room2 at conference.localhost'
-    activity['id'] = 'activity2'
+    activity['room'] = 'room3 at conference.localhost'
+    activity['id'] = 'activity3'
     properties = activity.addElement((NS_OLPC_ACTIVITY_PROPS, "properties"))
     property = properties.addElement((None, "property"))
     property['type'] = 'str'
@@ -227,7 +227,7 @@ def test(q, bus, conn, stream):
 
     event = q.expect('dbus-signal', signal='ActivityPropertiesChanged')
     handle, props = event.args
-    assert conn.InspectHandles(2, [handle])[0] == 'room2 at conference.localhost'
+    assert conn.InspectHandles(2, [handle])[0] == 'room3 at conference.localhost'
     assert props == {'color': '#AABBCC,#001122'}
 
     event = q.expect('dbus-signal', signal='ActivitiesChanged')
@@ -235,9 +235,9 @@ def test(q, bus, conn, stream):
     assert removed == []
     assert len(added) == 1
     id, handle = added[0]
-    assert id == 'activity2'
+    assert id == 'activity3'
     assert sorted(conn.InspectHandles(2, [handle])) == \
-            ['room2 at conference.localhost']
+            ['room3 at conference.localhost']
 
     act = view2.GetActivities()
     assert sorted(act) == sorted(added)
-- 
1.5.6.5




More information about the Telepathy-commits mailing list