@pytest.mark.network
def test_install_package_with_same_name_in_curdir(script):
 script.scratch_path.join('mock==0.6').mkdir()
 result = script.pip('install', 'mock==0.6')
 egg_folder = ((script.site_packages / 'mock-0.6.0-py%s.egg-info') % pyversion)
 assert (egg_folder in result.files_created), str(result)

@ pytest . mark . network def test_install_package_with_same_name_in_curdir ( script ) : script . scratch_path . join ( 'mock==0.6' ) . mkdir ( ) result = script . pip ( 'install' , 'mock==0.6' ) egg_folder = ( ( script . site_packages / 'mock-0.6.0-py%s.egg-info' ) % pyversion ) assert ( egg_folder in result . files_created ) , str ( result )
test installing a package with the same name of a local folder .