cubicweb/server/test/unittest_serverctl.py
changeset 12002 26453d9467f6
parent 11355 47b0b08fbb4b
child 12016 88ed82a25f8a
--- a/cubicweb/server/test/unittest_serverctl.py	Mon Mar 06 13:15:51 2017 +0100
+++ b/cubicweb/server/test/unittest_serverctl.py	Mon Mar 06 15:22:16 2017 +0100
@@ -3,14 +3,19 @@
 
 from cubicweb import ExecutionError
 from cubicweb.devtools import testlib, ApptestConfiguration
-from cubicweb.server.serverctl import _local_dump, DBDumpCommand, SynchronizeSourceCommand
+from cubicweb.server.serverctl import DBDumpCommand, SynchronizeSourceCommand
 from cubicweb.server.serverconfig import ServerConfiguration
 
+
 class ServerCTLTC(testlib.CubicWebTC):
+
     def setUp(self):
         super(ServerCTLTC, self).setUp()
         self.orig_config_for = ServerConfiguration.config_for
-        config_for = lambda appid: ApptestConfiguration(appid, __file__)
+
+        def config_for(appid):
+            return ApptestConfiguration(appid, __file__)
+
         ServerConfiguration.config_for = staticmethod(config_for)
 
     def tearDown(self):