

def test_last_line_with_escape(self):
    lines = enumerate(['line 1', 'line 2 \\'], start=1)
    expect = [(1, 'line 1'), (2, 'line 2 ')]
    assert (expect == list(join_lines(lines)))

dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py TestJoinLines.test_last_line_with_escape/original