summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-03-04 17:53:33 +0000
committerRafael H. Schloming <rhs@apache.org>2010-03-04 17:53:33 +0000
commit4f549cd24a62b0e225b86ad65e9399d388f8f698 (patch)
tree9e673ca373c6fba7ff993d6e719e0e4a4c7970b9
parentd350bc1095314da7854a3a8d3a148f76c9668f7b (diff)
downloadqpid-python-4f549cd24a62b0e225b86ad65e9399d388f8f698.tar.gz
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
-rw-r--r--python/qpid/tests/messaging/message.py5
1 files changed, 4 insertions, 1 deletions
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)