[telepathy-mission-control/master] fd.o #20909: regression tests: assert that ObserveChannels gets the extra arguments

Simon McVittie simon.mcvittie at collabora.co.uk
Fri Apr 17 09:12:20 PDT 2009


---
 test/twisted/account-requests/create-text.py   |    2 ++
 test/twisted/dispatcher/already-has-channel.py |    2 ++
 test/twisted/dispatcher/create-text.py         |    2 ++
 test/twisted/dispatcher/dispatch-text.py       |    2 ++
 test/twisted/dispatcher/exploding-bundles.py   |    2 ++
 5 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/test/twisted/account-requests/create-text.py b/test/twisted/account-requests/create-text.py
index 3bbb117..435d299 100644
--- a/test/twisted/account-requests/create-text.py
+++ b/test/twisted/account-requests/create-text.py
@@ -140,6 +140,8 @@ def test_channel_creation(q, bus, account, client, conn, ensure):
             handled=False)
     assert e.args[0] == account.object_path, e.args
     assert e.args[1] == conn.object_path, e.args
+    assert e.args[3] == '/', e.args         # no dispatch operation
+    assert e.args[4] == [request_path], e.args
     channels = e.args[2]
     assert len(channels) == 1, channels
     assert channels[0][0] == channel.object_path, channels
diff --git a/test/twisted/dispatcher/already-has-channel.py b/test/twisted/dispatcher/already-has-channel.py
index 81c66d3..5b21827 100644
--- a/test/twisted/dispatcher/already-has-channel.py
+++ b/test/twisted/dispatcher/already-has-channel.py
@@ -169,6 +169,8 @@ def test(q, bus, mc):
             )
     assert e.args[0] == account.object_path, e.args
     assert e.args[1] == conn.object_path, e.args
+    assert e.args[3] == cdo_path, e.args
+    assert e.args[4] == [], e.args      # no requests satisfied
     channels = e.args[2]
     assert len(channels) == 1, channels
     assert channels[0][0] == chan.object_path, channels
diff --git a/test/twisted/dispatcher/create-text.py b/test/twisted/dispatcher/create-text.py
index 2781027..2acae66 100644
--- a/test/twisted/dispatcher/create-text.py
+++ b/test/twisted/dispatcher/create-text.py
@@ -147,6 +147,8 @@ def test_channel_creation(q, bus, account, client, conn, ensure):
             handled=False)
     assert e.args[0] == account.object_path, e.args
     assert e.args[1] == conn.object_path, e.args
+    assert e.args[3] == '/', e.args         # no dispatch operation
+    assert e.args[4] == [request_path], e.args
     channels = e.args[2]
     assert len(channels) == 1, channels
     assert channels[0][0] == channel.object_path, channels
diff --git a/test/twisted/dispatcher/dispatch-text.py b/test/twisted/dispatcher/dispatch-text.py
index 3635b72..30413bf 100644
--- a/test/twisted/dispatcher/dispatch-text.py
+++ b/test/twisted/dispatcher/dispatch-text.py
@@ -127,6 +127,8 @@ def test(q, bus, mc):
             )
     assert e.args[0] == account.object_path, e.args
     assert e.args[1] == conn.object_path, e.args
+    assert e.args[3] == cdo_path, e.args
+    assert e.args[4] == [], e.args      # no requests satisfied
     channels = e.args[2]
     assert len(channels) == 1, channels
     assert channels[0][0] == chan.object_path, channels
diff --git a/test/twisted/dispatcher/exploding-bundles.py b/test/twisted/dispatcher/exploding-bundles.py
index f0d8fa0..b918c08 100644
--- a/test/twisted/dispatcher/exploding-bundles.py
+++ b/test/twisted/dispatcher/exploding-bundles.py
@@ -160,6 +160,8 @@ def test(q, bus, mc):
             )
     assert e.args[0] == account.object_path, e.args
     assert e.args[1] == conn.object_path, e.args
+    assert e.args[3] == cdo_path, e.args
+    assert e.args[4] == [], e.args      # no requests satisfied
     channels = e.args[2]
     assert len(channels) == 2, channels
     assert (text_chan.object_path, text_channel_properties) in channels
-- 
1.5.6.5




More information about the telepathy-commits mailing list