summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/acl.py
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-02-23 20:57:26 +0000
committerGordon Sim <gsim@apache.org>2011-02-23 20:57:26 +0000
commit0315f575a14370dcff19d91cc1695dc751d4f420 (patch)
treef26bf1b86fe6cd2ab456a1d9d8dae6014fa325da /qpid/cpp/src/tests/acl.py
parent4230a9612bf78ee51b085398093267d15ef9a0d2 (diff)
downloadqpid-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-xqpid/cpp/src/tests/acl.py4
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
#=====================================