def setUp(self): workdir = '/tmp/simple' extra_context = {} from simple.simple import SimpleStorage connector = SimpleStorage(workdir) StorageModuleTestBase.setUp(self, connector, extra_context) if not os.path.exists(workdir): os.mkdir(workdir) # save our workdir for tearDown time self.workdir = workdir
def tearDown(self): StorageModuleTestBase.tearDown(self) # clean up after ourselves shutil.rmtree(self.workdir)