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)
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()
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()
def __init__(self, config): FakeRESTServer.__init__(self, config) self.setLog()