[Telepathy-commits] [telepathy-gabble/master] olpc-buddy-search.py: wrap long lines

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


20080612092004-7fe3f-8e6cda3ed5611c30d54fe63ce2b805d652adf552.gz
---
 tests/twisted/olpc/olpc-buddy-search.py |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/twisted/olpc/olpc-buddy-search.py b/tests/twisted/olpc/olpc-buddy-search.py
index 928a48e..00d9b75 100644
--- a/tests/twisted/olpc/olpc-buddy-search.py
+++ b/tests/twisted/olpc/olpc-buddy-search.py
@@ -110,7 +110,8 @@ def test(q, bus, conn, stream):
     call_async(q, gadget_iface, 'RequestRandomBuddies', 3)
 
     iq_event, return_event = q.expect_many(
-        EventPattern('stream-iq', to='gadget.localhost', query_ns=NS_OLPC_BUDDY),
+        EventPattern('stream-iq', to='gadget.localhost',
+            query_ns=NS_OLPC_BUDDY),
         EventPattern('dbus-return', method='RequestRandomBuddies'))
 
     view = iq_event.stanza.firstChildElement()
@@ -149,8 +150,8 @@ def test(q, bus, conn, stream):
     added, removed = event.args
     assert removed == []
     assert len(added) == 2
-    #assert conn.InspectHandles(1, [handle])[0] == 'bob at localhost'
-    assert sorted(conn.InspectHandles(1, added)) == ['bob at localhost', 'charles at localhost']
+    assert sorted(conn.InspectHandles(1, added)) == ['bob at localhost',
+            'charles at localhost']
 
     # we can now get bob's properties
     handle = conn.RequestHandles(1, ['bob at localhost'])[0]
@@ -165,7 +166,8 @@ def test(q, bus, conn, stream):
         EventPattern('stream-iq', to='gadget.localhost', query_ns=NS_OLPC_BUDDY),
         EventPattern('dbus-return', method='SearchBuddiesByProperties'))
 
-    properties = xpath.queryForNodes('/iq/view/buddy/properties/property', iq_event.stanza)
+    properties = xpath.queryForNodes('/iq/view/buddy/properties/property',
+            iq_event.stanza)
     view = iq_event.stanza.firstChildElement()
     assert view.name == 'view'
     assert view['id'] == '1'
-- 
1.5.6.5




More information about the Telepathy-commits mailing list