diff options
-rw-r--r-- | tests/twisted/connect/ping.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/twisted/connect/ping.py b/tests/twisted/connect/ping.py index 7a5b8e0..7d77341 100644 --- a/tests/twisted/connect/ping.py +++ b/tests/twisted/connect/ping.py @@ -3,15 +3,17 @@ Test Idle sending PINGs. """ from idletest import exec_test -from servicetest import EventPattern, call_async +from servicetest import assertLength def test(q, bus, conn, stream): conn.Connect() q.expect('dbus-signal', signal='StatusChanged', args=[0, 1]) e = q.expect('stream-PING') + assertLength(1, e.data) timestamp = e.data[0] - stream.sendMessage('PONG', timestamp) + stream.sendMessage('PONG', 'idle.test.server', ':%s' % timestamp, + prefix='idle.test.server') if __name__ == '__main__': exec_test(test, params={ |