o
    ¯N i  ã                   @   sB   d Z ddlZddlZddlmZ ddgZej de¡dd„ ƒZdS )	zÐ
Here, we test that we can associate a language code with each language name
that is commonly used on Wiktionary, that all the language codes are
different, and that each language name matches only one code.
é    N)ÚWIKT_LANGUAGE_NAMESÚenÚdeÚtarget_langc                 C   sT   i }t |  D ]!}| d¡rqtt |¡ƒ}||vs#J d|| |f ƒ‚|||< qd S )NzProto-z%r and %r have the same code)r   Ú
startswithÚstrÚ	langcodesÚfind)r   Ú
seen_codesÚ	lang_nameÚcode© r   úW/home/ubuntu/.local/lib/python3.10/site-packages/langcodes/tests/test_wikt_languages.pyÚtest_check_wiktionary_language   s   
þ
ør   )	Ú__doc__Úpytestr   Úlangcodes.language_listsr   Ú	LANGUAGESÚmarkÚparametrizer   r   r   r   r   Ú<module>   s    