@pytest.mark.network
def test_pip_second_command_line_interface_works(script, data):
 kwargs = {}
 if (pyversion_tuple < (2, 7, 9)):
  kwargs['expect_stderr'] = True
 args = [('pip%s' % pyversion)]
 args.extend(['install', 'INITools==0.2'])
 args.extend(['-f', data.packages])
 result = script.run(*args, **kwargs)
 egg_info_folder = ((script.site_packages / 'INITools-0.2-py%s.egg-info') % pyversion)
 initools_folder = (script.site_packages / 'initools')
 assert (egg_info_folder in result.files_created), str(result)
 assert (initools_folder in result.files_created), str(result)

@ pytest . mark . network def test_pip_second_command_line_interface_works ( script , data ) : kwargs = { } if ( pyversion_tuple < ( 2 , 7 , 9 ) ) : kwargs [ 'expect_stderr' ] = True args = [ ( 'pip%s' % pyversion ) ] args . extend ( [ 'install' , 'INITools==0.2' ] ) args . extend ( [ '-f' , data . packages ] ) result = script . run ( * args , ** kwargs ) egg_info_folder = ( ( script . site_packages / 'INITools-0.2-py%s.egg-info' ) % pyversion ) initools_folder = ( script . site_packages / 'initools' ) assert ( egg_info_folder in result . files_created ) , str ( result ) assert ( initools_folder in result . files_created ) , str ( result )
check if pip<pyversion> commands behaves equally .