server/test/unittest_security.py
changeset 10600 180aa08cad48
parent 10463 9add9b7f9df7
child 10609 e2d8e81bfe68
--- a/server/test/unittest_security.py	Tue Sep 15 16:30:25 2015 +0200
+++ b/server/test/unittest_security.py	Wed Sep 16 11:32:09 2015 +0200
@@ -559,7 +559,7 @@
             rset = cnx.execute('CWUser X')
             self.assertEqual([[anon.eid]], rset.rows)
             # anonymous user can read groups (necessary to check allowed transitions for instance)
-            self.assert_(cnx.execute('CWGroup X'))
+            self.assertTrue(cnx.execute('CWGroup X'))
             # should only be able to read the anonymous user, not another one
             self.assertRaises(Unauthorized,
                               cnx.execute, 'CWUser X WHERE X eid %(x)s', {'x': admineid})