[testlib] fix typos / NameErrors in devtools/__init__.py stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 13 Apr 2011 14:02:04 +0200
branchstable
changeset 7220 eb0f5f46138f
parent 7219 d961184f9a86
child 7224 e5833657c646
[testlib] fix typos / NameErrors in devtools/__init__.py
devtools/__init__.py
--- a/devtools/__init__.py	Wed Apr 13 12:50:31 2011 +0200
+++ b/devtools/__init__.py	Wed Apr 13 14:02:04 2011 +0200
@@ -415,9 +415,9 @@
     def dbname(self):
         return self.system_source['db-name']
 
-    def init_test_database():
+    def init_test_database(self):
         """actual initialisation of the database"""
-        raise ValueError('no initialization function for driver %r' % driver)
+        raise ValueError('no initialization function for driver %r' % self.DRIVER)
 
     def has_cache(self, db_id):
         """Check if a given database id exist in cb cache for the current config"""
@@ -636,7 +636,7 @@
         """initialize a fresh sqlserver databse used for testing purpose"""
         if self.config.init_repository:
             from cubicweb.server import init_repository
-            init_repository(config, interactive=False, drop=True)
+            init_repository(self.config, interactive=False, drop=True)
 
 ### sqlite test database handling ##############################################