

def test_join_lines(self, tmpdir, finder):
    with open(tmpdir.join('req1.txt'), 'w') as fp:
        fp.write('--extra-index-url url1 \\\n--extra-index-url url2')
    list(parse_requirements(tmpdir.join('req1.txt'), finder=finder, session=PipSession()))
    assert (finder.index_urls == ['url1', 'url2'])

dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py TestParseRequirements.test_join_lines/original