def test_install_folder_using_slash_in_the_end(script):
 script.scratch_path.join('mock').mkdir()
 pkg_path = (script.scratch_path / 'mock')
 pkg_path.join('setup.py').write(mock100_setup_py)
 result = script.pip('install', ('mock' + os.path.sep))
 egg_folder = ((script.site_packages / 'mock-100.1-py%s.egg-info') % pyversion)
 assert (egg_folder in result.files_created), str(result)

def test_install_folder_using_slash_in_the_end ( script ) : script . scratch_path . join ( 'mock' ) . mkdir ( ) pkg_path = ( script . scratch_path / 'mock' ) pkg_path . join ( 'setup.py' ) . write ( mock100_setup_py ) result = script . pip ( 'install' , ( 'mock' + os . path . sep ) ) egg_folder = ( ( script . site_packages / 'mock-100.1-py%s.egg-info' ) % pyversion ) assert ( egg_folder in result . files_created ) , str ( result )
test installing a folder using pip install foldername/ or foldername .