[Telepathy-commits] [telepathy-gabble/master] olpc-activity-search.py: add some comments

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


20080612110135-7fe3f-b2ee08262858fcdd2acb45026b16aea887b1e366.gz
---
 tests/twisted/olpc/olpc-activity-search.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/olpc/olpc-activity-search.py b/tests/twisted/olpc/olpc-activity-search.py
index 217b0a2..5cc8f22 100644
--- a/tests/twisted/olpc/olpc-activity-search.py
+++ b/tests/twisted/olpc/olpc-activity-search.py
@@ -63,7 +63,7 @@ def test(q, bus, conn, stream):
 
     sync_stream(q, stream)
 
-    # request 3 random activities
+    # request 3 random activities (view 0)
     call_async(q, gadget_iface, 'RequestRandomActivities', 3)
 
     iq_event, return_event = q.expect_many(
@@ -133,7 +133,7 @@ def test(q, bus, conn, stream):
     props = buddy_prop_iface.GetProperties(members_handles[0])
     assert props == {'color': '#AABBCC,#CCBBAA'}
 
-    # activity search by properties
+    # activity search by properties (view 1)
     props = {'color': '#AABBCC,#001122'}
     call_async(q, gadget_iface, 'SearchActivitiesByProperties', props)
 
@@ -189,7 +189,7 @@ def test(q, bus, conn, stream):
     act = view1.GetActivities()
     assert sorted(act) == sorted(added)
 
-    # activity search by participants
+    # activity search by participants (view 2)
     participants = conn.RequestHandles(1, ["alice at localhost", "bob at localhost"])
     call_async(q, gadget_iface, 'SearchActivitiesByParticipants', participants)
 
@@ -242,7 +242,7 @@ def test(q, bus, conn, stream):
     act = view2.GetActivities()
     assert sorted(act) == sorted(added)
 
-    # add one activity to view0
+    # add one activity to view 0
     message = domish.Element((None, 'message'))
     message['from'] = 'gadget.localhost'
     message['to'] = 'alice at localhost'
@@ -284,6 +284,7 @@ def test(q, bus, conn, stream):
     assert sorted(conn.InspectHandles(2, [handle])) == \
             ['room3 at conference.localhost']
 
+    # close view 0
     call_async(q, view0_iface, 'Close')
     event, _ = q.expect_many(
         EventPattern('stream-message', to='gadget.localhost'),
-- 
1.5.6.5




More information about the Telepathy-commits mailing list