def test_file_index_url_quoting(script, data):
 index_url = data.index_url(urllib_parse.quote('in dex'))
 result = script.pip('install', '-vvv', '--index-url', index_url, 'simple', expect_error=False)
 assert ((script.site_packages / 'simple') in result.files_created), str(result.stdout)
 assert (((script.site_packages / 'simple-1.0-py%s.egg-info') % pyversion) in result.files_created), str(result)

def test_file_index_url_quoting ( script , data ) : index_url = data . index_url ( urllib_parse . quote ( 'in dex' ) ) result = script . pip ( 'install' , '-vvv' , '--index-url' , index_url , 'simple' , expect_error = False ) assert ( ( script . site_packages / 'simple' ) in result . files_created ) , str ( result . stdout ) assert ( ( ( script . site_packages / 'simple-1.0-py%s.egg-info' ) % pyversion ) in result . files_created ) , str ( result )
test url quoting of file index url with a space .