

def test_yield_line_requirement_with_spaces_in_specifier(self):
    line = 'SomeProject >= 2'
    filename = 'filename'
    comes_from = ('-r %s (line %s)' % (filename, 1))
    req = InstallRequirement.from_line(line, comes_from=comes_from)
    assert (repr(list(process_line(line, filename, 1))[0]) == repr(req))
    assert (str(req.req.specifier) == '>=2')

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