web/test/unittest_application.py
changeset 9674 96549de9dd70
parent 9642 9a42eaeea263
child 9861 e90ff9d594e5
--- a/web/test/unittest_application.py	Wed Apr 09 11:25:45 2014 +0200
+++ b/web/test/unittest_application.py	Tue Apr 08 17:39:39 2014 +0200
@@ -332,8 +332,8 @@
         except Redirect as redir:
             self.fail('anonymous user should get login form')
         clear_cache(req, 'get_authorization')
-        self.assertTrue('__login' in form)
-        self.assertTrue('__password' in form)
+        self.assertIn('__login', form)
+        self.assertIn('__password', form)
         self.assertFalse(req.cnx) # Mock cnx are False
         req.form['__login'] = self.admlogin
         req.form['__password'] = self.admpassword