summaryrefslogtreecommitdiff
path: root/tests/twisted/console.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/twisted/console.py')
-rw-r--r--tests/twisted/console.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/twisted/console.py b/tests/twisted/console.py
index b2efd658c..5eddaf024 100644
--- a/tests/twisted/console.py
+++ b/tests/twisted/console.py
@@ -39,6 +39,11 @@ def test(q, bus, conn, stream):
assertContains((fixed, allowed), rccs)
path, _ = conn.Requests.CreateChannel({ cs.CHANNEL_TYPE: CONSOLE_PLUGIN_IFACE })
+ other_path, _ = conn.Requests.CreateChannel({ cs.CHANNEL_TYPE: CONSOLE_PLUGIN_IFACE })
+
+ assertNotEquals(path, other_path)
+ # leave the other one open, to test we don't crash on disconnect
+
console = ProxyWrapper(bus.get_object(conn.bus_name, path),
CONSOLE_PLUGIN_IFACE,
{'Channel': cs.CHANNEL})