diff options
| author | Alan Conway <aconway@apache.org> | 2014-09-09 16:39:18 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2014-09-09 16:39:18 +0000 |
| commit | 89bc3eff639c8f2e7f3c2fba041b1f86af481614 (patch) | |
| tree | f3dbfc59c4d69582b1f559ed2272e66535f3dd53 /qpid/cpp | |
| parent | 6b86c37821372b9a66ba58db03a19b48433e2971 (diff) | |
| download | qpid-python-89bc3eff639c8f2e7f3c2fba041b1f86af481614.tar.gz | |
NO-JIRA: Fix error message test in acl.py, on older python versions error code is '7L' instead of '7'
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1623856 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rwxr-xr-x | qpid/cpp/src/tests/acl.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qpid/cpp/src/tests/acl.py b/qpid/cpp/src/tests/acl.py index 75aa39295a..2838bd3f83 100755 --- a/qpid/cpp/src/tests/acl.py +++ b/qpid/cpp/src/tests/acl.py @@ -920,64 +920,64 @@ class ACLTests(TestBase010): broker_agent.queueMoveMessages("q7", "q8", 0) self.fail("ACL should deny queue move request from q7 to q8"); except Exception, e: - self.assertTrue("'error_code': 7," in e.args[0]) + self.assertTrue("'error_code': 7" in e.args[0]) broker_agent = BrokerAgent(self.get_messaging_connection('bob','bob')) try: broker_agent.queueMoveMessages("q8", "q9", 0) except Exception, e: - if ("'error_code': 7," in e.args[0]): + if ("'error_code': 7" in e.args[0]): self.fail("ACL should allow queue move request from q8 to q9"); try: broker_agent.queueMoveMessages("q9", "q8", 0) except Exception, e: - if ("'error_code': 7," in e.args[0]): + if ("'error_code': 7" in e.args[0]): self.fail("ACL should allow queue move request from q9 to q8"); try: broker_agent.Redirect("q7", "q8") self.fail("ACL should deny queue redirect request from q7 to q8"); except Exception, e: - self.assertTrue("'error_code': 7," in e.args[0]) + self.assertTrue("'error_code': 7" in e.args[0]) broker_agent = BrokerAgent(self.get_messaging_connection('bob','bob')) try: broker_agent.Redirect("q8", "q9") except Exception, e: - if ("'error_code': 7," in e.args[0]): + if ("'error_code': 7" in e.args[0]): self.fail("ACL should allow queue redirect request from q8 to q9"); try: broker_agent.Redirect("q9", "q8") except Exception, e: - if ("'error_code': 7," in e.args[0]): + if ("'error_code': 7" in e.args[0]): self.fail("ACL should allow queue redirect request from q9 to q8"); try: broker_agent.getQueue('q7').reroute(0, False, "amq.fanout") self.fail("ACL should deny queue reroute request from q7 to amq.fanout"); except Exception, e: - self.assertTrue("'error_code': 7," in e.args[0]) + self.assertTrue("'error_code': 7" in e.args[0]) broker_agent = BrokerAgent(self.get_messaging_connection('bob','bob')) try: broker_agent.getQueue('q8').reroute(0, False, "amq.fanout") self.fail("ACL should deny queue reroute request from q8 to amq.fanout"); except Exception, e: - self.assertTrue("'error_code': 7," in e.args[0]) + self.assertTrue("'error_code': 7" in e.args[0]) broker_agent = BrokerAgent(self.get_messaging_connection('bob','bob')) try: broker_agent.getQueue('q8').reroute(0, False, "amq.direct") except Exception, e: - if ("'error_code': 7," in e.args[0]): + if ("'error_code': 7" in e.args[0]): self.fail("ACL should allow queue reroute request from q8 to amq.direct"); try: broker_agent.getQueue('q9').reroute(0, False, "amq.fanout") except Exception, e: - if ("'error_code': 7," in e.args[0]): + if ("'error_code': 7" in e.args[0]): self.fail("ACL should allow queue reroute request from q9 to amq.fanout"); try: |
