def test_install_pardir(script, data):
 run_from = data.packages.join('FSPkg', 'fspkg')
 result = script.pip('install', pardir, cwd=run_from, expect_error=False)
 fspkg_folder = (script.site_packages / 'fspkg')
 egg_info_folder = ((script.site_packages / 'FSPkg-0.1.dev0-py%s.egg-info') % pyversion)
 assert (fspkg_folder in result.files_created), str(result.stdout)
 assert (egg_info_folder in result.files_created), str(result)

def test_install_pardir ( script , data ) : run_from = data . packages . join ( 'FSPkg' , 'fspkg' ) result = script . pip ( 'install' , pardir , cwd = run_from , expect_error = False ) fspkg_folder = ( script . site_packages / 'fspkg' ) egg_info_folder = ( ( script . site_packages / 'FSPkg-0.1.dev0-py%s.egg-info' ) % pyversion ) assert ( fspkg_folder in result . files_created ) , str ( result . stdout ) assert ( egg_info_folder in result . files_created ) , str ( result )
test installing parent directory .