[telepathy-mission-control/master] fd.o#23935: add regression test in dispatcher/create-no-preferred-handler.py
Simon McVittie
simon.mcvittie at collabora.co.uk
Mon Sep 14 10:59:33 PDT 2009
---
.../dispatcher/create-no-preferred-handler.py | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/test/twisted/dispatcher/create-no-preferred-handler.py b/test/twisted/dispatcher/create-no-preferred-handler.py
index 7bc3380..15579b0 100644
--- a/test/twisted/dispatcher/create-no-preferred-handler.py
+++ b/test/twisted/dispatcher/create-no-preferred-handler.py
@@ -17,7 +17,8 @@
# 02110-1301 USA
import dbus
-"""Regression test for https://bugs.freedesktop.org/show_bug.cgi?id=22169
+"""Regression test for https://bugs.freedesktop.org/show_bug.cgi?id=22169,
+and for http://bugs.freedesktop.org/show_bug.cgi?id=23935
"""
import dbus
@@ -40,10 +41,15 @@ def test(q, bus, mc):
cs.CHANNEL + '.TargetHandleType': cs.HT_CONTACT,
cs.CHANNEL + '.ChannelType': cs.CHANNEL_TYPE_TEXT,
}, signature='sv')
+ # Emulate a handler that only wants to get outgoing channels, as a
+ # regression test for <http://bugs.freedesktop.org/show_bug.cgi?id=23935>,
+ # in which those didn't work
+ text_requested = dbus.Dictionary(text_fixed_properties, signature='sv')
+ text_requested[cs.CHANNEL + '.Requested'] = True
client = SimulatedClient(q, bus, 'Empathy',
observe=[text_fixed_properties], approve=[text_fixed_properties],
- handle=[text_fixed_properties], bypass_approval=False)
+ handle=[text_requested], bypass_approval=False)
# No Approver should be invoked at any point during this test, because the
# Channel was Requested
--
1.5.6.5
More information about the telepathy-commits
mailing list