def tearDown(self):
     try:
         os.unlink(self.shelve_filename)
     except AttributeError:
         pass
     HTTPTestBase.tearDown(self)
     return
示例#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
示例#4
0
 def tearDown(self):
     try:
         os.unlink(self.shelve_filename)
     except AttributeError:
         pass
     HTTPTestBase.tearDown(self)
     return
示例#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
示例#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
示例#7
0
 def setUp(self):
     HTTPTestBase.setUp(self)
     self.shove_dirname = tempfile.mkdtemp('shove')
     return
示例#8
0
 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