

def test_set_default_vcs(self, options):
    url = 'https://url#egg=SomeProject'
    line = ('-e %s' % url)
    filename = 'filename'
    options.default_vcs = 'git'
    result = process_line(line, filename, 1, options=options)
    assert (list(result)[0].link.url == ('git+' + url))

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