def test_install_with_hacked_egg_info(script, data):
 run_from = data.packages.join('HackedEggInfo')
 result = script.pip('install', '.', cwd=run_from)
 assert ('Successfully installed hackedegginfo-0.0.0\n' in result.stdout)

def test_install_with_hacked_egg_info ( script , data ) : run_from = data . packages . join ( 'HackedEggInfo' ) result = script . pip ( 'install' , '.' , cwd = run_from ) assert ( 'Successfully installed hackedegginfo-0.0.0\n' in result . stdout )
test installing a package which defines its own egg_info class .