summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-21 13:20:30 (GMT)
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-21 13:20:30 (GMT)
commite3e955d792db4328ff026a7c1c48c13dc8028826 (patch)
treeae7c1929b6a9c5e39a42dc8335fdeb514e42efc4
parent41baccd21db1ffc14d694b9d631b3385178894f6 (diff)
downloadtelepathy-mission-control-e3e955d792db4328ff026a7c1c48c13dc8028826.tar.gz
telepathy-mission-control-e3e955d792db4328ff026a7c1c48c13dc8028826.tar.xz
mctest: implement HoldHandles
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--test/twisted/mctest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/twisted/mctest.py b/test/twisted/mctest.py
index 8a38894..41e7eaf 100644
--- a/test/twisted/mctest.py
+++ b/test/twisted/mctest.py
@@ -236,6 +236,9 @@ class SimulatedConnection(object):
q.add_dbus_method_impl(self.InspectHandles,
path=self.object_path, interface=cs.CONN,
method='InspectHandles')
+ q.add_dbus_method_impl(self.HoldHandles,
+ path=self.object_path, interface=cs.CONN,
+ method='HoldHandles')
q.add_dbus_method_impl(self.GetAll_Requests,
path=self.object_path,
interface=cs.PROPERTIES_IFACE, method='GetAll',
@@ -470,6 +473,10 @@ class SimulatedConnection(object):
def GetSelfHandle(self, e):
self.q.dbus_return(e.message, self.self_handle, signature='u')
+ def HoldHandles(self, e):
+ # do nothing
+ self.q.dbus_return(e.message, signature='')
+
def NewChannels(self, channels):
for channel in channels:
assert not channel.announced