def tearDown(self):
     try:
         os.unlink(self.shelve_filename)
     except AttributeError:
         pass
     HTTPTestBase.tearDown(self)
     return
Beispiel #2
0
 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 tearDown(self):
     try:
         os.unlink(self.shelve_filename)
     except AttributeError:
         pass
     HTTPTestBase.tearDown(self)
     return
Beispiel #5
0
    def setUp(self):
        HTTPTestBase.setUp(self)

        self.storage = self.getStorage()
        self.cache = cache.Cache(self.storage,
                                 timeToLiveSeconds=self.CACHE_TTL,
                                 userAgent='feedcache.test',
                                 )
        return
Beispiel #6
0
    def setUp(self):
        HTTPTestBase.setUp(self)

        self.storage = self.getStorage()
        self.cache = cache.Cache(
            self.storage,
            timeToLiveSeconds=self.CACHE_TTL,
            userAgent='feedcache.test',
        )
        return
Beispiel #7
0
 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