summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2012-10-30 14:20:43 +0000
committerWill Thompson <will.thompson@collabora.co.uk>2012-10-30 14:20:43 +0000
commit2667606678abd63820b321d3d51ebd0efc0c3e24 (patch)
tree5db96606d682186ef48e96cd2d071e237758bb75 /tests
parent0bbe346a069316f2b4571834791abc6e2ed3e4d7 (diff)
downloadtelepathy-idle-2667606678abd63820b321d3d51ebd0efc0c3e24.tar.gz
Make the PONGs sent back by the test more realistic
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/connect/ping.py6
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={