summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-11-07 12:04:53 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-11-07 12:04:53 +0000
commitc346e8d12bd8a287695f9a427e22e9c837b866cb (patch)
treedd89a4fabc046f6a90dd44df047e929929442fbe
parent8f4b74e0be10e90de1c95122d3daec075fcf9bef (diff)
downloadqpid-python-c346e8d12bd8a287695f9a427e22e9c837b866cb.tar.gz
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.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@592723 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/testlib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/qpid/testlib.py b/python/qpid/testlib.py
index 39bad75b86..043460be35 100644
--- a/python/qpid/testlib.py
+++ b/python/qpid/testlib.py
@@ -215,7 +215,9 @@ class TestBase(unittest.TestCase):
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):
"""