[Telepathy-commits] [telepathy-mission-control/master] fakecm.py: Add support to test SetSelfCapabilities in the fake Connection Manager
Alban Crequy
alban.crequy at collabora.co.uk
Thu Nov 13 07:56:59 PST 2008
---
test/twisted/fakecm.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/test/twisted/fakecm.py b/test/twisted/fakecm.py
index ad3038f..8a7bb97 100644
--- a/test/twisted/fakecm.py
+++ b/test/twisted/fakecm.py
@@ -5,6 +5,8 @@ from servicetest import EventPattern, tp_name_prefix, tp_path_prefix
cm_iface = "org.freedesktop.Telepathy.ConnectionManager"
conn_iface = "org.freedesktop.Telepathy.Connection"
+caps_iface = \
+ "org.freedesktop.Telepathy.Connection.Interface.ContactCapabilities.DRAFT"
class FakeConn(dbus.service.Object):
def __init__(self, object_path, q, bus, nameref):
@@ -22,6 +24,13 @@ class FakeConn(dbus.service.Object):
path=self.object_path))
return None
+ @dbus.service.method(dbus_interface=caps_iface,
+ in_signature='aa{sv}', out_signature='')
+ def SetSelfCapabilities(self, caps):
+ self.q.append(Event('dbus-method-call', name="SetSelfCapabilities",
+ obj=self, path=self.object_path, caps=caps))
+ return None
+
class FakeCM(dbus.service.Object):
def __init__(self, object_path, q, bus, bus_name, nameref):
self.object_path = object_path
--
1.5.6.5
More information about the Telepathy-commits
mailing list