def test_read():
    path = "test"
    if os.path.isfile(path):
        os.remove(path)

    expected_lines = ["a\n", "b"]
    rw = FileSystemReaderWriter(path)
    with open("test", "w") as f:
        f.writelines(expected_lines)

    read_lines = rw.read_lines()
    assert expected_lines == read_lines

    os.remove(path)