[telepathy-mission-control/master] dispatcher/already-has-obsolete.py: do not assert that MC knows all the channel's properties

Simon McVittie simon.mcvittie at collabora.co.uk
Fri May 22 09:56:04 PDT 2009


ListChannels provides an incomplete set and MC is not guaranteed to
download the rest.
---
 test/twisted/dispatcher/already-has-obsolete.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/test/twisted/dispatcher/already-has-obsolete.py b/test/twisted/dispatcher/already-has-obsolete.py
index 3ae5108..a7a0996 100644
--- a/test/twisted/dispatcher/already-has-obsolete.py
+++ b/test/twisted/dispatcher/already-has-obsolete.py
@@ -154,7 +154,6 @@ def test(q, bus, mc):
     channels = e.args[2]
     assert len(channels) == 1, channels
     assert channels[0][0] == chan.object_path, channels
-    assert channels[0][1] == channel_properties, channels
 
     assert k.args == e.args
 
@@ -175,8 +174,11 @@ def test(q, bus, mc):
                 handled=False),
             )
 
-    assert e.args == [[(chan.object_path, channel_properties)],
-            cdo_path, cdo_properties]
+    assert len(e.args) == 3
+    assert len(e.args[0]) == 1
+    assert e.args[0][0][0] == chan.object_path
+    assert e.args[1] == cdo_path
+    assert e.args[2] == cdo_properties
     assert k.args == e.args
 
     q.dbus_return(e.message, signature='')
-- 
1.5.6.5




More information about the telepathy-commits mailing list