@pytest.mark.network
def test_install_from_pypi(script):
 result = script.pip('install', '-vvv', 'INITools==0.2')
 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_install_from_pypi ( script ) : result = script . pip ( 'install' , '-vvv' , 'INITools==0.2' ) 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 )
test installing a package from pypi .