You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by rh...@apache.org on 2010/03/04 18:53:33 UTC

svn commit: r919094 - /qpid/trunk/qpid/python/qpid/tests/messaging/message.py

Author: rhs
Date: Thu Mar  4 17:53:33 2010
New Revision: 919094

URL: http://svn.apache.org/viewvc?rev=919094&view=rev
Log:
fixed message comparison to allow for decrementing of the ttl

Modified:
    qpid/trunk/qpid/python/qpid/tests/messaging/message.py

Modified: qpid/trunk/qpid/python/qpid/tests/messaging/message.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/python/qpid/tests/messaging/message.py?rev=919094&r1=919093&r2=919094&view=diff
==============================================================================
--- qpid/trunk/qpid/python/qpid/tests/messaging/message.py (original)
+++ qpid/trunk/qpid/python/qpid/tests/messaging/message.py Thu Mar  4 17:53:33 2010
@@ -77,7 +77,10 @@
     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)



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org