[Telepathy-commits] [telepathy-gabble/master] Fix trivial FIXMEs

Will Thompson will.thompson at collabora.co.uk
Wed Feb 18 10:02:58 PST 2009


---
 .../offer-accept-private-dbus-stream-tube-ibb.py   |   13 ++++++-------
 ...offer-accept-private-dbus-stream-tube-socks5.py |    3 +--
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-ibb.py b/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-ibb.py
index 368e648..e4a414d 100644
--- a/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-ibb.py
+++ b/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-ibb.py
@@ -689,8 +689,7 @@ def test(q, bus, conn, stream):
 
     event = q.expect('dbus-return', method='AcceptDBusTube')
     address = event.value[0]
-    # FIXME: this is currently broken. See FIXME in tubes-channel.c
-    #assert len(address) > 0
+    assert len(address) > 0
 
     event = q.expect('dbus-signal', signal='TubeStateChanged',
         args=[69, 2]) # 2 == OPEN
@@ -713,7 +712,8 @@ def test(q, bus, conn, stream):
     assert props[TARGET_HANDLE] == bob_handle
     assert props[TARGET_ID] == 'bob at localhost'
     assert props[DBUS_TUBE_SERVICE_NAME] == 'com.example.TestCase2'
-    # FIXME: check if State and Parameters are *not* in props
+    assert props[TUBE_PARAMETERS] == {'login': 'TEST'}
+    assert TUBE_STATE not in props
 
     tube_chan = bus.get_object(conn.bus_name, path)
     tube_chan_iface = dbus.Interface(tube_chan, CHANNEL)
@@ -758,10 +758,9 @@ def test(q, bus, conn, stream):
     # close the tube
     tube_chan_iface.Close()
 
-    # FIXME: uncomment once the fix-stream-tube-new-api is merged
-    #q.expect_many(
-    #    EventPattern('dbus-signal', signal='Closed'),
-    #    EventPattern('dbus-signal', signal='ChannelClosed'))
+    q.expect_many(
+        EventPattern('dbus-signal', signal='Closed'),
+        EventPattern('dbus-signal', signal='ChannelClosed'))
 
     # OK, we're done
     conn.Disconnect()
diff --git a/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-socks5.py b/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-socks5.py
index 61c03a0..e438b4c 100644
--- a/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-socks5.py
+++ b/tests/twisted/tubes/offer-accept-private-dbus-stream-tube-socks5.py
@@ -699,8 +699,7 @@ def test(q, bus, conn, stream):
         EventPattern('dbus-return', method='AcceptDBusTube'),
         EventPattern('s5b-connected'))
     address = event.value[0]
-    # FIXME: this is currently broken. See FIXME in tubes-channel.c
-    #assert len(address) > 0
+    assert len(address) > 0
 
     # OK, we're done
     conn.Disconnect()
-- 
1.5.6.5




More information about the telepathy-commits mailing list