def tearDown(self): try: os.unlink(self.shelve_filename) except AttributeError: pass HTTPTestBase.tearDown(self) return
def tearDown(self): try: os.system('rm -rf %s' % self.storage_dirname) except AttributeError: pass HTTPTestBase.tearDown(self) return
def setUp(self): HTTPTestBase.setUp(self) handle, self.shelve_filename = tempfile.mkstemp('.shelve') os.close( handle) # we just want the file name, so close the open handle os.unlink(self.shelve_filename) # remove the empty file return
def setUp(self): HTTPTestBase.setUp(self) self.storage = self.getStorage() self.cache = cache.Cache(self.storage, timeToLiveSeconds=self.CACHE_TTL, userAgent='feedcache.test', ) return
def setUp(self): HTTPTestBase.setUp(self) self.storage = self.getStorage() self.cache = cache.Cache( self.storage, timeToLiveSeconds=self.CACHE_TTL, userAgent='feedcache.test', ) return
def setUp(self): HTTPTestBase.setUp(self) self.shove_dirname = tempfile.mkdtemp('shove') return
def setUp(self): HTTPTestBase.setUp(self) handle, self.shelve_filename = tempfile.mkstemp('.shelve') os.close(handle) # we just want the file name, so close the open handle os.unlink(self.shelve_filename) # remove the empty file return