server/test/unittest_session.py
branchstable
changeset 5193 c9671feff5e2
parent 4212 ab6573088b4a
child 5197 98dc05495e3e
--- a/server/test/unittest_session.py	Thu Apr 08 19:37:00 2010 +0200
+++ b/server/test/unittest_session.py	Fri Apr 09 11:16:00 2010 +0200
@@ -7,6 +7,7 @@
 """
 from logilab.common.testlib import TestCase, unittest_main, mock_object
 
+from cubicweb.devtools.testlib import CubicWebTC
 from cubicweb.server.session import _make_description
 
 class Variable:
@@ -32,5 +33,10 @@
         self.assertEquals(_make_description((Function('max', 'A'), Variable('B')), {}, solution),
                           ['Int','CWUser'])
 
+class InternalSessionTC(CubicWebTC):
+    def test_dbapi_query(self):
+        session = self.repo.internal_session()
+        self.assertFalse(session.running_dbapi_query)
+
 if __name__ == '__main__':
     unittest_main()