[test] Drop unnecessary call to new_session
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 10 Mar 2017 18:00:13 +0100
changeset 12042 5e64a98572de
parent 12041 69f69ce8241a
child 12043 b8d2e6b9f548
[test] Drop unnecessary call to new_session This is not unittest, the above call is enough.
cubicweb/server/test/unittest_ldapsource.py
--- a/cubicweb/server/test/unittest_ldapsource.py	Fri Mar 10 17:58:25 2017 +0100
+++ b/cubicweb/server/test/unittest_ldapsource.py	Fri Mar 10 18:00:13 2017 +0100
@@ -246,7 +246,6 @@
             self.assertRaises(AuthenticationError,
                               source.authenticate, cnx, 'syt', 'toto')
             self.assertTrue(source.authenticate(cnx, 'syt', 'syt'))
-        self.assertTrue(self.repo.new_session('syt', password='syt'))
 
     def test_base(self):
         with self.admin_access.repo_cnx() as cnx: