test/unittest_dbapi.py
changeset 4913 083b4d454192
parent 4768 430b89aed996
child 5223 6abd6e3599f4
child 5421 8167de96c523
--- a/test/unittest_dbapi.py	Wed Mar 10 16:07:24 2010 +0100
+++ b/test/unittest_dbapi.py	Mon Mar 01 11:26:14 2010 +0100
@@ -5,11 +5,13 @@
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
 """
+from __future__ import with_statement
+from copy import copy
+
 from cubicweb import ConnectionError
 from cubicweb.dbapi import ProgrammingError
 from cubicweb.devtools.testlib import CubicWebTC
 
-
 class DBAPITC(CubicWebTC):
 
     def test_public_repo_api(self):
@@ -68,6 +70,7 @@
         self.assertRaises(ProgrammingError, cnx.set_shared_data, 'data', 0)
         self.assertRaises(ProgrammingError, cnx.get_shared_data, 'data')
 
+
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()