コード例 #1
0
def test_local_cache_abspath():
    lc = LocalCache("/tmp")
    assert lc.abspath("a", "b-c") == "/tmp/files/a/b/c"
コード例 #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/"