

def test_options_on_a_requirement_line(self):
    line = 'SomeProject --install-option=yo1 --install-option yo2 --global-option="yo3" --global-option "yo4"'
    filename = 'filename'
    req = list(process_line(line, filename, 1))[0]
    assert (req.options == {
        'global_options': ['yo3', 'yo4'],
        'install_options': ['yo1', 'yo2'],
    })

dataset/ETHPy150Open pypa/pip/tests/unit/test_req_file.py TestProcessLine.test_options_on_a_requirement_line/original