diff options
Diffstat (limited to 'tests/twisted/tubes/accept-private-stream-tube.py')
-rw-r--r-- | tests/twisted/tubes/accept-private-stream-tube.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/twisted/tubes/accept-private-stream-tube.py b/tests/twisted/tubes/accept-private-stream-tube.py index 37ed1693d..386e51b5c 100644 --- a/tests/twisted/tubes/accept-private-stream-tube.py +++ b/tests/twisted/tubes/accept-private-stream-tube.py @@ -36,16 +36,13 @@ def receive_tube_offer(q, bus, conn, stream): stream.send(message) def new_chan_predicate(e): - path, props = e.args[0][0] + path, props = e.args return props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_STREAM_TUBE - new_sig = q.expect('dbus-signal', signal='NewChannels', + new_sig = q.expect('dbus-signal', signal='NewChannel', predicate=new_chan_predicate) - assert len(new_sig.args) == 1 - assert len(new_sig.args[0]) == 1 - - path, props = new_sig.args[0][0] + path, props = new_sig.args assertEquals(cs.CHANNEL_TYPE_STREAM_TUBE, props[cs.CHANNEL_TYPE]) assertEquals(cs.HT_CONTACT, props[cs.TARGET_HANDLE_TYPE]) assertEquals(False, props[cs.REQUESTED]) |