Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def generate_pickle_path(cache_dir, cache_name):
    return os.path.join(cache_dir, cache_name + '.pkl')
        


src/p/y/py_cache_manager-HEAD/tests/common.py   py_cache_manager(Download)
import glob
from cacheman import cacher
from cacheman.registers import generate_pickle_path
 
class CacheCommonAsserter(object):
    def check_cache(self, cache_name, presence):
        assertion = self.assertTrue if presence else self.assertFalse
        cache_path = generate_pickle_path(CacheCommonAsserter.TEST_CACHE_DIR, cache_name)
        assertion(os.path.isfile(cache_path))
        self.assertFalse(os.path.isfile(cache_path + '.tmp'))