web/test/unittest_session.py
changeset 6366 1806148d6ce8
parent 6032 52f9a43d8e08
parent 6340 470d8e828fda
child 6367 d4c485ec1ca1
--- a/web/test/unittest_session.py	Thu Sep 23 23:28:58 2010 +0200
+++ b/web/test/unittest_session.py	Wed Sep 29 16:16:32 2010 +0200
@@ -16,16 +16,24 @@
         # make is if the web session has been opened by the session manager
         sm._sessions[self.cnx.sessionid] = self.websession
         sessionid = self.websession.sessionid
-        self.assertEquals(len(sm._sessions), 1)
-        self.assertEquals(self.websession.sessionid, self.websession.cnx.sessionid)
+        self.assertEqual(len(sm._sessions), 1)
+        self.assertEqual(self.websession.sessionid, self.websession.cnx.sessionid)
         # fake the repo session is expiring
         self.repo.close(sessionid)
         try:
             # fake an incoming http query with sessionid in session cookie
             # don't use self.request() which try to call req.set_session
             req = self.requestcls(self.vreg)
+<<<<<<< /home/syt/src/fcubicweb/cubicweb/web/test/unittest_session.py
             self.assertRaises(InvalidSession, sm.get_session, req, sessionid)
             self.assertEquals(len(sm._sessions), 0)
+=======
+            websession = sm.get_session(req, sessionid)
+            self.assertEqual(len(sm._sessions), 1)
+            self.assertIs(websession, self.websession)
+            self.assertEqual(websession.sessionid, sessionid)
+            self.assertNotEquals(websession.sessionid, websession.cnx.sessionid)
+>>>>>>> /tmp/unittest_session.py~other.sGNH8u
         finally:
             # avoid error in tearDown by telling this connection is closed...
             self.cnx._closed = True