Author: ritchiem
Date: Wed Nov 7 04:04:53 2007
New Revision: 592723
URL: http://svn.apache.org/viewvc?rev=592723&view=rev
Log:
QPID-678 Test library is to strict. Protocol spec states that additional
headers may be added to the message but the test lib doesn't allow for this.
Modified:
incubator/qpid/branches/M2.1/python/qpid/testlib.py
Modified: incubator/qpid/branches/M2.1/python/qpid/testlib.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/branches/M2.1/python/qpid/testlib.py?rev=592723&r1=592722&r2=592723&view=diff
==============================================================================
--- incubator/qpid/branches/M2.1/python/qpid/testlib.py (original)
+++ incubator/qpid/branches/M2.1/python/qpid/testlib.py Wed Nov 7 04:04:53 2007
@@ -215,7 +215,9 @@
routing_key=routing_key)
msg = queue.get(timeout=1)
self.assertEqual(body, msg.content.body)
- if (properties): self.assertEqual(properties, msg.content.properties)
+ if (properties):
+ for prop in properties:
+ self.assertTrue(prop in msg.content.properties)
def assertPublishConsume(self, queue="", exchange="", routing_key="",
properties=None):
"""