summaryrefslogtreecommitdiff
path: root/python
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
commit474f39e379eddc7d258fff3799fedb6ec1446d0b (patch)
tree9e673ca373c6fba7ff993d6e719e0e4a4c7970b9 /python
parentb9e24b4703b0c699c7a0b4b5a7e5afa988ab9f4b (diff)
downloadqpid-python-474f39e379eddc7d258fff3799fedb6ec1446d0b.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
Diffstat (limited to 'python')
-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)