telepathy-idle: stop using GetInterfaces()

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Mon Sep 23 04:53:09 PDT 2013


Module: telepathy-idle
Branch: master
Commit: 017669901bbe009a4c55892a8d0fb4a100740de4
URL:    http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=017669901bbe009a4c55892a8d0fb4a100740de4

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Fri Sep 20 13:58:42 2013 +0200

stop using GetInterfaces()

Will be removed in Telepathy 1.0

---

 tests/twisted/channels/requests-create.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/channels/requests-create.py b/tests/twisted/channels/requests-create.py
index e3adb64..e60e86b 100644
--- a/tests/twisted/channels/requests-create.py
+++ b/tests/twisted/channels/requests-create.py
@@ -15,9 +15,9 @@ def test(q, bus, conn, stream):
     conn.Connect()
     q.expect('dbus-signal', signal='StatusChanged', args=[0,1])
 
-    ifs = conn.GetInterfaces()
+    props = conn.GetAll(cs.CONN, dbus_interface=cs.PROPERTIES_IFACE)
 
-    assert cs.CONN_IFACE_REQUESTS in ifs
+    assertContains(cs.CONN_IFACE_REQUESTS, props['Interfaces'])
 
     nick = 'foo'
     call_async(q, conn, 'RequestHandles', cs.HT_CONTACT, [nick])



More information about the telepathy-commits mailing list