[telepathy-mission-control/master] Add a regression test for fd.o #22670

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Jul 8 05:28:17 PDT 2009


---
 test/twisted/dispatcher/bypass-approval.py |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/test/twisted/dispatcher/bypass-approval.py b/test/twisted/dispatcher/bypass-approval.py
index 4370268..b7a275d 100644
--- a/test/twisted/dispatcher/bypass-approval.py
+++ b/test/twisted/dispatcher/bypass-approval.py
@@ -25,7 +25,7 @@ import dbus
 import dbus.service
 
 from servicetest import EventPattern, tp_name_prefix, tp_path_prefix, \
-        call_async
+        call_async, sync_dbus
 from mctest import exec_test, SimulatedConnection, SimulatedClient, \
         create_fakecm_account, enable_fakecm_account, SimulatedChannel, \
         expect_client_setup
@@ -273,6 +273,19 @@ def test(q, bus, mc):
     # Kopete accepts the channels
     q.dbus_return(e.message, signature='')
 
+    # Regression test for fd.o #22670
+
+    closure = [
+            EventPattern('dbus-method-call', method='Close'),
+            ]
+
+    q.forbid_events(closure)
+
+    bypass.release_name()
+    sync_dbus(bus, q, mc)
+
+    q.unforbid_events(closure)
+
 if __name__ == '__main__':
     exec_test(test, {})
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list