server/test/unittest_session.py
changeset 9799 5362310d46da
parent 9478 2d7521881d3d
child 9934 e32964e28a45
equal deleted inserted replaced
9798:1c105cf42904 9799:5362310d46da
     1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 
    18 
    19 from cubicweb.devtools.testlib import CubicWebTC
    19 from cubicweb.devtools.testlib import CubicWebTC
    20 from cubicweb.server.session import HOOKS_ALLOW_ALL, HOOKS_DENY_ALL, Connection
    20 from cubicweb.server.session import HOOKS_ALLOW_ALL, HOOKS_DENY_ALL
    21 
    21 
    22 class InternalSessionTC(CubicWebTC):
    22 class InternalSessionTC(CubicWebTC):
    23     def test_dbapi_query(self):
    23     def test_dbapi_query(self):
    24         session = self.repo.internal_session()
    24         session = self.repo.internal_session()
    25         self.assertFalse(session.running_dbapi_query)
    25         self.assertFalse(session.running_dbapi_query)