[Telepathy-commits] [telepathy-gabble/master] fix view number in test comments

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Oct 13 09:00:39 PDT 2008


---
 tests/twisted/olpc/olpc-activity-search.py |   12 ++++++------
 tests/twisted/olpc/olpc-buddy-search.py    |    7 ++-----
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/tests/twisted/olpc/olpc-activity-search.py b/tests/twisted/olpc/olpc-activity-search.py
index 66573fa..94bbf46 100644
--- a/tests/twisted/olpc/olpc-activity-search.py
+++ b/tests/twisted/olpc/olpc-activity-search.py
@@ -90,7 +90,7 @@ def test(q, bus, conn, stream):
          ) in properties.get('RequestableChannelClasses'),\
                  properties['RequestableChannelClasses']
 
-    # request 3 random activities (view 0)
+    # request 3 random activities (view 1)
     view_path = request_random_activity_view(q, stream, conn, 3, '1',
             [('activity1', 'room1 at conference.localhost',
                 {'color': ('str', '#005FE4,#00A0FF')},
@@ -180,7 +180,7 @@ def test(q, bus, conn, stream):
     q.expect('dbus-return', method='GetActivities',
             value=([('activity1', handles['room1'])],))
 
-    # activity search by properties (view 1)
+    # activity search by properties (view 2)
     props = dbus.Dictionary({'color': '#AABBCC,#001122'}, signature='sv')
 
     call_async(q, requests_iface, 'CreateChannel',
@@ -239,7 +239,7 @@ def test(q, bus, conn, stream):
         dbus_interface='org.freedesktop.DBus.Properties')
     assert buddies == []
 
-    # activity search by participants (view 2)
+    # activity search by participants (view 3)
     participants = conn.RequestHandles(1, ["alice at localhost", "bob at localhost"])
 
     call_async(q, requests_iface, 'CreateChannel',
@@ -288,7 +288,7 @@ def test(q, bus, conn, stream):
         dbus_interface='org.freedesktop.DBus.Properties')
     assert sorted(act) == [('activity3', handles['room3'])]
 
-    # add activity 4 to view 0
+    # add activity 4 to view 1
     message = create_gadget_message('alice at localhost')
 
     added = message.addElement((NS_OLPC_ACTIVITY, 'added'))
@@ -461,7 +461,7 @@ def test(q, bus, conn, stream):
         ('activity1', handles['room1']),('activity4', handles['room4'])],
         ['fernand at localhost', 'lucien at localhost', 'jean at localhost'])
 
-    # remove activity 1 from view 0
+    # remove activity 1 from view 1
     message = create_gadget_message('alice at localhost')
 
     removed = message.addElement((NS_OLPC_ACTIVITY, 'removed'))
@@ -494,7 +494,7 @@ def test(q, bus, conn, stream):
         ('activity4', handles['room4'])],
         ['fernand at localhost', 'jean at localhost'])
 
-    # close view 0
+    # close view 1
     call_async(q, view1, 'Close')
     event_msg, _, _, _ = q.expect_many(
         EventPattern('stream-message', to='gadget.localhost'),
diff --git a/tests/twisted/olpc/olpc-buddy-search.py b/tests/twisted/olpc/olpc-buddy-search.py
index b45789a..fb7724e 100644
--- a/tests/twisted/olpc/olpc-buddy-search.py
+++ b/tests/twisted/olpc/olpc-buddy-search.py
@@ -281,7 +281,7 @@ def test(q, bus, conn, stream):
     assert conn.InspectHandles(1, [handle])[0] == 'charles at localhost'
     assert props == {'color': '#AABBCC,#001122'}
 
-    # add a buddy to view 0
+    # add a buddy to view 1
     message = create_gadget_message("test at localhost")
 
     added = message.addElement((NS_OLPC_BUDDY, 'added'))
@@ -309,7 +309,7 @@ def test(q, bus, conn, stream):
     assert sorted(members) == ['bob at localhost', 'charles at localhost',
             'oscar at localhost']
 
-    # remove a buddy from view 0
+    # remove a buddy from view 1
     message = create_gadget_message("test at localhost")
 
     added = message.addElement((NS_OLPC_BUDDY, 'removed'))
@@ -386,13 +386,10 @@ def test(q, bus, conn, stream):
     assert sorted(conn.InspectHandles(1, added)) == ['thomas at localhost',
             'tom at localhost']
 
-    # close view 0
     close_view(q, view1, '1')
 
-    # close view 1
     close_view(q, view2, '2')
 
-    # close view 2
     close_view(q, view3, '3')
 
     # View request without MaxSize property
-- 
1.5.6.5




More information about the Telepathy-commits mailing list