web/test/unittest_application.py
branchstable
changeset 7163 d6d905d0344f
parent 6882 b5e34836f84e
child 7166 dde161937d3e
child 7224 e5833657c646
--- a/web/test/unittest_application.py	Fri Apr 01 01:06:41 2011 +0200
+++ b/web/test/unittest_application.py	Fri Apr 01 14:26:18 2011 +0200
@@ -315,8 +315,7 @@
 
     def test_fb_login_concept(self):
         """see data/views.py"""
-        self.set_option('auth-mode', 'cookie')
-        self.set_option('anonymous-user', 'anon')
+        self.set_auth_mode('cookie', 'anon')
         self.login('anon')
         req = self.request()
         origcnx = req.cnx
@@ -325,6 +324,7 @@
         self.failIf(req.cnx is origcnx)
         self.assertEqual(req.user.login, 'turlututu')
         self.failUnless('turlututu' in page, page)
+        req.cnx.close() # avoid warning
 
     # authentication tests ####################################################