[test] check_session returns an int since 6012:d56fd78006cd
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 28 Jul 2010 15:01:48 +0200
changeset 6030 a1544ca8913e
parent 6026 0211cfb76071
child 6032 52f9a43d8e08
[test] check_session returns an int since 6012:d56fd78006cd
server/test/unittest_repository.py
--- a/server/test/unittest_repository.py	Tue Jul 27 19:14:17 2010 +0200
+++ b/server/test/unittest_repository.py	Wed Jul 28 15:01:48 2010 +0200
@@ -161,7 +161,7 @@
     def test_check_session(self):
         repo = self.repo
         cnxid = repo.connect(self.admlogin, password=self.admpassword)
-        self.assertEquals(repo.check_session(cnxid), None)
+        self.assertIsInstance(repo.check_session(cnxid), float)
         repo.close(cnxid)
         self.assertRaises(BadConnectionId, repo.check_session, cnxid)