[Telepathy-commits] [telepathy-gabble/master] Test test-si-tubes.py: better comment for the NewChannels signal (no change in the code)

Alban Crequy alban.crequy at collabora.co.uk
Fri Dec 5 09:42:37 PST 2008


---
 tests/twisted/tubes/test-si-tubes.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/tubes/test-si-tubes.py b/tests/twisted/tubes/test-si-tubes.py
index 1607aae..718b079 100644
--- a/tests/twisted/tubes/test-si-tubes.py
+++ b/tests/twisted/tubes/test-si-tubes.py
@@ -220,8 +220,11 @@ def test(q, bus, conn, stream):
     assert old_sig.args[4] == True      # suppress handler
 
     assert len(new_sig.args) == 1
-    assert len(new_sig.args[0]) == 1        # one channel
-    assert len(new_sig.args[0][0]) == 2     # two struct members
+    # one channel (the old-api channel was already existing)
+    assert len(new_sig.args[0]) == 1
+    # two struct members (o + a{sv})
+    assert len(new_sig.args[0][0]) == 2
+    # the new channel is in the first cell of the new_sig array
     assert new_sig.args[0][0][0] == new_chan_path
     emitted_props = new_sig.args[0][0][1]
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list