Beispiel #1
0
 def tearDown(self):
     FakeRESTServer.tearDown(self)
     self._cleanWorkArea()
     if os.path.isfile(CRABRESTModelMock.FILE_NAME):
         os.remove(CRABRESTModelMock.FILE_NAME)
     if os.path.isdir("crab_" + self.TestConfig.config.General.requestName):
         shutil.rmtree("crab_" + self.TestConfig.config.General.requestName)
Beispiel #2
0
 def tearDown(self):
     FakeRESTServer.tearDown(self)
     self._cleanWorkArea()
     if os.path.isfile(CRABRESTModelMock.FILE_NAME):
         os.remove(CRABRESTModelMock.FILE_NAME)
     if os.path.isdir("crab_" + self.TestConfig.config.General.requestName):
         shutil.rmtree("crab_" + self.TestConfig.config.General.requestName)
Beispiel #3
0
 def setUp(self):
     #Dynamic import of the configuration which in principle is not in the PYTHONPATH
     self.TestConfig = imp.load_source('TestConfig', os.path.join( os.path.dirname(__file__), "../../../data/TestConfig.py"))
     FakeRESTServer.setUp(self)
     if os.path.isdir("./crab_TestAnalysis"):
         shutil.rmtree("./crab_TestAnalysis")
     if os.path.isdir("./crab_TestAnalysisSubmit"):
         shutil.rmtree("./crab_TestAnalysisSubmit")
     self._prepareWorkArea()
Beispiel #4
0
 def setUp(self):
     #Dynamic import of the configuration which in principle is not in the PYTHONPATH
     self.TestConfig = imp.load_source(
         'TestConfig',
         os.path.join(os.path.dirname(__file__),
                      "../../../data/TestConfig.py"))
     FakeRESTServer.setUp(self)
     if os.path.isdir("./crab_TestAnalysis"):
         shutil.rmtree("./crab_TestAnalysis")
     if os.path.isdir("./crab_TestAnalysisSubmit"):
         shutil.rmtree("./crab_TestAnalysisSubmit")
     self._prepareWorkArea()
Beispiel #5
0
 def __init__(self, config):
     FakeRESTServer.__init__(self, config)
     self.setLog()
Beispiel #6
0
 def __init__(self, config):
     FakeRESTServer.__init__(self, config)
     self.setLog()