

def test_yield_editable_requirement(self):
    url = 'git+https://url#egg=SomeProject'
    line = ('-e %s' % url)
    filename = 'filename'
    comes_from = ('-r %s (line %s)' % (filename, 1))
    req = InstallRequirement.from_editable(url, comes_from=comes_from)
    assert (repr(list(process_line(line, filename, 1))[0]) == repr(req))

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