예제 #1
0
def test_can_remove_file():
    fs = FileSystem()

    file_path = join(ROOT_DIR, "some_file")
    f = open(file_path, "w")
    f.write("content")
    f.close()

    fs.remove(file_path)

    assert not exists(file_path)
예제 #2
0
def test_can_remove_file():
    fs = FileSystem()

    file_path = join(ROOT_DIR, "some_file")
    f = open(file_path, "w")
    f.write("content")
    f.close()

    fs.remove(file_path)

    assert not exists(file_path)