Esempio n. 1
0
def test_local_cache_abspath():
    lc = LocalCache("/tmp")
    assert lc.abspath("a", "b-c") == "/tmp/files/a/b/c"
Esempio n. 2
0
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/"