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 | 0315f575a14370dcff19d91cc1695dc751d4f420 (patch) | |
| tree | f26bf1b86fe6cd2ab456a1d9d8dae6014fa325da /qpid/cpp/src/tests/acl.py | |
| parent | 4230a9612bf78ee51b085398093267d15ef9a0d2 (diff) | |
| download | qpid-python-0315f575a14370dcff19d91cc1695dc751d4f420.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@1073945 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/acl.py')
| -rwxr-xr-x | qpid/cpp/src/tests/acl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/acl.py b/qpid/cpp/src/tests/acl.py index bd6031d1fd..5e9a150d8f 100755 --- a/qpid/cpp/src/tests/acl.py +++ b/qpid/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 #===================================== |
