@pytest.mark.network
def test_install_global_option_using_editable(script, tmpdir):
 url = 'hg+http://bitbucket.org/runeh/anyjson'
 result = script.pip('install', '--global-option=--version', '-e', ('%s@0.2.5#egg=anyjson' % local_checkout(url, tmpdir.join('cache'))), expect_stderr=True)
 assert ('Successfully installed anyjson' in result.stdout)

@ pytest . mark . network def test_install_global_option_using_editable ( script , tmpdir ) : url = 'hg+http://bitbucket.org/runeh/anyjson' result = script . pip ( 'install' , '--global-option=--version' , '-e' , ( '%s@0.2.5#egg=anyjson' % local_checkout ( url , tmpdir . join ( 'cache' ) ) ) , expect_stderr = True ) assert ( 'Successfully installed anyjson' in result . stdout )
test using global distutils options .