@pytest.mark.network
def test_command_line_appends_correctly(script, data):
 script.environ['PIP_FIND_LINKS'] = ('http://pypi.pinaxproject.com %s' % data.find_links)
 result = script.pip('install', '-vvv', 'INITools', '--trusted-host', 'pypi.pinaxproject.com', expect_error=True)
 assert ('Analyzing links from page http://pypi.pinaxproject.com' in result.stdout), result.stdout
 assert (('Skipping link %s' % data.find_links) in result.stdout)

@ pytest . mark . network def test_command_line_appends_correctly ( script , data ) : script . environ [ 'PIP_FIND_LINKS' ] = ( 'http://pypi.pinaxproject.com %s' % data . find_links ) result = script . pip ( 'install' , '-vvv' , 'INITools' , '--trusted-host' , 'pypi.pinaxproject.com' , expect_error = True ) assert ( 'Analyzing links from page http://pypi.pinaxproject.com' in result . stdout ) , result . stdout assert ( ( 'Skipping link %s' % data . find_links ) in result . stdout )
test multiple appending options set by environmental variables .