web/test/unittest_application.py
changeset 10356 a009a31fb1ea
parent 10331 6f25c7e4f19b
child 10604 d4bf85db41f2
child 11122 fedcb69982af
--- a/web/test/unittest_application.py	Fri Jun 13 15:42:04 2014 +0200
+++ b/web/test/unittest_application.py	Fri Jun 13 15:56:08 2014 +0200
@@ -371,7 +371,7 @@
     def _test_auth_anon(self, req):
         asession = self.app.get_session(req)
         # important otherwise _reset_cookie will not use the right session
-        req.set_cnx(repoapi.ClientConnection(asession))
+        req.set_cnx(repoapi.Connection(asession))
         self.assertEqual(len(self.open_sessions), 1)
         self.assertEqual(asession.login, 'anon')
         self.assertTrue(asession.anonymous_session)
@@ -381,7 +381,7 @@
         self.assertEqual(1, len(self.open_sessions))
         session = self.app.get_session(req)
         # important otherwise _reset_cookie will not use the right session
-        req.set_cnx(repoapi.ClientConnection(session))
+        req.set_cnx(repoapi.Connection(session))
         self.assertEqual(req.message, 'authentication failure')
         self.assertEqual(req.session.anonymous_session, True)
         self.assertEqual(1, len(self.open_sessions))