From c346e8d12bd8a287695f9a427e22e9c837b866cb Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Wed, 7 Nov 2007 12:04:53 +0000 Subject: 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 --- python/qpid/testlib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): """ -- cgit v1.2.1