[telepathy-mission-control/master] dispatcher/dispatch-text.py: exercise HandleWith with invalid Client names

Simon McVittie simon.mcvittie at collabora.co.uk
Wed May 20 02:31:10 PDT 2009


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

diff --git a/test/twisted/dispatcher/dispatch-text.py b/test/twisted/dispatcher/dispatch-text.py
index 43194b6..3b83aaf 100644
--- a/test/twisted/dispatcher/dispatch-text.py
+++ b/test/twisted/dispatcher/dispatch-text.py
@@ -130,6 +130,14 @@ def test(q, bus, mc):
     # Both Approvers now have a flashing icon or something, trying to get the
     # user's attention
 
+    # Using an invalid Handler name should fail
+    call_async(q, cdo_iface, 'HandleWith',
+            cs.tp_name_prefix + '.The.Moon.On.A.Stick')
+    q.expect('dbus-error', method='HandleWith')
+    call_async(q, cdo_iface, 'HandleWith',
+            cs.tp_name_prefix + '.Client.the moon on a stick')
+    q.expect('dbus-error', method='HandleWith')
+
     # The user responds to Empathy first
     call_async(q, cdo_iface, 'HandleWith',
             cs.tp_name_prefix + '.Client.Empathy')
-- 
1.5.6.5




More information about the telepathy-commits mailing list