diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2010-03-04 17:53:33 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2010-03-04 17:53:33 +0000 |
| commit | 16ca6bff72d91ea476b8dd751fadac8183f829d4 (patch) | |
| tree | 0349b3a2692d41482d2a516167089482e29773a7 /qpid/python | |
| parent | a9d455913c20b8419f4e41ae78aa40e99fdccbf9 (diff) | |
| download | qpid-python-16ca6bff72d91ea476b8dd751fadac8183f829d4.tar.gz | |
fixed message comparison to allow for decrementing of the ttl
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@919094 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python')
| -rw-r--r-- | qpid/python/qpid/tests/messaging/message.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/python/qpid/tests/messaging/message.py b/qpid/python/qpid/tests/messaging/message.py index 930c031abb..2f2acc13c3 100644 --- a/qpid/python/qpid/tests/messaging/message.py +++ b/qpid/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) |
