summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-03-18 14:35:11 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2011-03-18 14:35:11 +0000
commit60cabc58f4a23a9494f875fc5bc8536f6da06f10 (patch)
tree0b2647e0164eb55a02ba46b7d420bb68ace76260
parent411f14de0bc018ae5f596257f20295413524f445 (diff)
downloadtelepathy-mission-control-60cabc58f4a23a9494f875fc5bc8536f6da06f10.tar.gz
mctest: add a pretty ChannelDispatcher class
-rw-r--r--tests/twisted/mctest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/twisted/mctest.py b/tests/twisted/mctest.py
index 6c858bac..99210219 100644
--- a/tests/twisted/mctest.py
+++ b/tests/twisted/mctest.py
@@ -1033,6 +1033,13 @@ class Account(servicetest.ProxyWrapper):
bus.get_object(cs.AM, account_path),
cs.ACCOUNT, {'Compat': cs.ACCOUNT_IFACE_NOKIA_COMPAT})
+class ChannelDispatcher(servicetest.ProxyWrapper):
+ def __init__(self, bus):
+ bare_cd = bus.get_object(cs.CD, cs.CD_PATH,
+ follow_name_owner_changes=True)
+
+ servicetest.ProxyWrapper.__init__(self, bare_cd, cs.CD, {})
+
def connect_to_mc(q, bus, mc):
account_manager = AccountManager(bus)