diff options
author | Martin Ritchie <ritchiem@apache.org> | 2007-11-07 12:04:53 +0000 |
---|---|---|
committer | Martin Ritchie <ritchiem@apache.org> | 2007-11-07 12:04:53 +0000 |
commit | c346e8d12bd8a287695f9a427e22e9c837b866cb (patch) | |
tree | dd89a4fabc046f6a90dd44df047e929929442fbe | |
parent | 8f4b74e0be10e90de1c95122d3daec075fcf9bef (diff) | |
download | qpid-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.py | 4 |
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): """ |