def METHOD_NAME(filename, paths):
    with open(os.path.join(datadir, filename)) as file:
        output = file.read()
    detected_paths = _parse_non_system_link_dirs(output)
    actual = detected_paths
    expected = paths
    missing_paths = list(x for x in expected if x not in actual)
    assert not missing_paths
    extra_paths = list(x for x in actual if x not in expected)
    assert not extra_paths
    assert actual == expected