telepathy-idle: Make the PONGs sent back by the test more realistic
Will Thompson
wjt at kemper.freedesktop.org
Fri Nov 2 04:56:49 PDT 2012
Module: telepathy-idle
Branch: master
Commit: 2667606678abd63820b321d3d51ebd0efc0c3e24
URL: http://cgit.freedesktop.org/telepathy/telepathy-idle/commit/?id=2667606678abd63820b321d3d51ebd0efc0c3e24
Author: Will Thompson <will.thompson at collabora.co.uk>
Date: Tue Oct 30 14:20:43 2012 +0000
Make the PONGs sent back by the test more realistic
---
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={
More information about the telepathy-commits
mailing list