summaryrefslogtreecommitdiff
path: root/tests/twisted/console.py
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2013-06-23 11:35:37 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2013-06-23 16:06:06 +0100
commit3d4f7ce3fe75756eef5066bd79c0a123a36258ed (patch)
tree6ab7049183056d6b08813aedbb28182331ae260a /tests/twisted/console.py
parente5385533d99716a27c42d41be96ea32ef7e23f71 (diff)
downloadtelepathy-gabble-3d4f7ce3fe75756eef5066bd79c0a123a36258ed.tar.gz
console: close channels on disconnect
Pretty much all of the 268 lines of channel-manager.c is boilerplate :(
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})