From fb0db96f52a38bc8f185d23abc7908361bc4dd68 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 23 Feb 2011 20:57:26 +0000 Subject: QPID-3015: assertTrue not available on older versions of python; change to assert git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1073945 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/acl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/tests/acl.py b/cpp/src/tests/acl.py index bd6031d1fd..5e9a150d8f 100755 --- a/cpp/src/tests/acl.py +++ b/cpp/src/tests/acl.py @@ -816,7 +816,7 @@ class ACLTests(TestBase010): self.fail("ACL should deny exchange delete request for my-exchange"); except Exception, e: self.assertEqual(7,e.args[0]["error_code"]) - self.assertTrue(e.args[0]["error_text"].find("unauthorized-access") == 0) + assert e.args[0]["error_text"].find("unauthorized-access") == 0 admin = BrokerAdmin(self.config.broker, "admin", "admin") admin.delete_exchange("my-exchange") #should pass @@ -826,7 +826,7 @@ class ACLTests(TestBase010): self.fail("ACL should deny exchange create request for another-exchange"); except Exception, e: self.assertEqual(7,e.args[0]["error_code"]) - self.assertTrue(e.args[0]["error_text"].find("unauthorized-access") == 0) + assert e.args[0]["error_text"].find("unauthorized-access") == 0 #===================================== -- cgit v1.2.1