diff options
author | Gordon Sim <gsim@apache.org> | 2011-02-23 20:57:26 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-02-23 20:57:26 +0000 |
commit | fb0db96f52a38bc8f185d23abc7908361bc4dd68 (patch) | |
tree | 7b8800a0e813f9108d5b9a84ea794e061babc41c | |
parent | e4b8b0592f3ed9daa40dcd24ec978c4b1e89cf91 (diff) | |
download | qpid-python-fb0db96f52a38bc8f185d23abc7908361bc4dd68.tar.gz |
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
-rwxr-xr-x | cpp/src/tests/acl.py | 4 |
1 files 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 #===================================== |