[telepathy-mission-control/master] dispatcher/dispatch-text.py: correctly claim the second channel on behalf of the fake Empathy, not on behalf of the test suite

Simon McVittie simon.mcvittie at collabora.co.uk
Wed May 27 06:03:23 PDT 2009


---
 test/twisted/dispatcher/dispatch-text.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/test/twisted/dispatcher/dispatch-text.py b/test/twisted/dispatcher/dispatch-text.py
index b8d7ab7..6ead49a 100644
--- a/test/twisted/dispatcher/dispatch-text.py
+++ b/test/twisted/dispatcher/dispatch-text.py
@@ -279,7 +279,9 @@ def test(q, bus, mc):
 
     # The user responds to Empathy first, and Empathy decides it wants the
     # channel for itself
-    call_async(q, cdo_iface, 'Claim')
+    empathy_cdo = empathy_bus.get_object(cdo.bus_name, cdo.object_path)
+    empathy_cdo_iface = dbus.Interface(empathy_cdo, cs.CDO)
+    call_async(q, empathy_cdo_iface, 'Claim')
 
     q.expect_many(
             EventPattern('dbus-signal', path=cdo_path, signal='Finished'),
-- 
1.5.6.5




More information about the telepathy-commits mailing list