qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1073945 - /qpid/trunk/qpid/cpp/src/tests/acl.py
Date Wed, 23 Feb 2011 20:57:26 GMT
Author: gsim
Date: Wed Feb 23 20:57:26 2011
New Revision: 1073945

URL: http://svn.apache.org/viewvc?rev=1073945&view=rev
Log:
QPID-3015: assertTrue not available on older versions of python; change to assert

Modified:
    qpid/trunk/qpid/cpp/src/tests/acl.py

Modified: qpid/trunk/qpid/cpp/src/tests/acl.py
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/tests/acl.py?rev=1073945&r1=1073944&r2=1073945&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/tests/acl.py (original)
+++ qpid/trunk/qpid/cpp/src/tests/acl.py Wed Feb 23 20:57:26 2011
@@ -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
 
 
    #=====================================



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message