From 4f549cd24a62b0e225b86ad65e9399d388f8f698 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Thu, 4 Mar 2010 17:53:33 +0000 Subject: fixed message comparison to allow for decrementing of the ttl git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919094 13f79535-47bb-0310-9956-ffa450edef68 --- python/qpid/tests/messaging/message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/qpid/tests/messaging/message.py b/python/qpid/tests/messaging/message.py index 930c031abb..2f2acc13c3 100644 --- a/python/qpid/tests/messaging/message.py +++ b/python/qpid/tests/messaging/message.py @@ -77,7 +77,10 @@ class MessageEchoTests(Base): assert msg.correlation_id == echo.correlation_id assert msg.durable == echo.durable assert msg.priority == echo.priority - assert msg.ttl == echo.ttl + if msg.ttl is None: + assert echo.ttl is None + else: + assert msg.ttl >= echo.ttl assert msg.properties == echo.properties assert msg.content_type == echo.content_type assert msg.content == echo.content, "%s, %s" % (msg, echo) -- cgit v1.2.1