

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

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