def METHOD_NAME(self):
    tmp_dir = tempfile.mkdtemp()
    try:
        c = cache.FileSystemCache(cache_dir=tmp_dir)
        for i in range(3):
            c.set(str(i), i * i)
        for i in range(3):
            result = c.get(str(i))
            assert result == i * i
    finally:
        shutil.rmtree(tmp_dir)