def test_local_cache_abspath(): lc = LocalCache("/tmp") assert lc.abspath("a", "b-c") == "/tmp/files/a/b/c"
def test_local_cache_get_cache_path(): lc = LocalCache("/tmp") assert lc.get_cache_path("a", "b-c") == "files/a/b/c" assert lc.get_cache_path("a") == "files/a/"