[telepathy-gabble/master] test-fallback-socks5-proxy: use conn.Requests

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Tue Mar 24 11:05:28 PDT 2009


---
 tests/twisted/test-fallback-socks5-proxy.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tests/twisted/test-fallback-socks5-proxy.py b/tests/twisted/test-fallback-socks5-proxy.py
index d7a0f23..b46daa0 100644
--- a/tests/twisted/test-fallback-socks5-proxy.py
+++ b/tests/twisted/test-fallback-socks5-proxy.py
@@ -23,7 +23,6 @@ def test(q, bus, conn, stream):
 
     # Offer a private D-Bus tube just to check if the proxy is present in the
     # SOCKS5 offer
-    requestotron = dbus.Interface(conn, cs.CONN_IFACE_REQUESTS)
 
     # Send Alice's presence
     caps =  { 'ext': '', 'ver': '0.0.0',
@@ -37,7 +36,7 @@ def test(q, bus, conn, stream):
     stream.send(make_caps_disco_reply(stream, disco_event.stanza, [ns.TUBES]))
     sync_stream(q, stream)
 
-    path, props = requestotron.CreateChannel({cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_DBUS_TUBE,
+    path, props = conn.Requests.CreateChannel({cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_DBUS_TUBE,
         cs.TARGET_HANDLE_TYPE: cs.HT_CONTACT,
         cs.TARGET_ID: 'alice at localhost',
         cs.DBUS_TUBE_SERVICE_NAME: 'com.example.TestCase'})
-- 
1.5.6.5




More information about the telepathy-commits mailing list