a
    ±Kbå  ã                   @   s    d dl mZ dd„ Zdd„ ZdS )é    )Údownloadc                 C   s(   t |  d¡ƒ}td|ƒ}|du s$J ‚dS )zSTest that download works properly when the parent folder of the download_dir existsZanother_dirÚmwa_ppdbTN©ÚstrÚjoinpathr   ©Ztmp_pathZdownload_dirZdownload_status© r   ú=lib/python3.9/site-packages/nltk/test/unit/test_downloader.pyÚ2test_downloader_using_existing_parent_download_dir   s    
r
   c                 C   s*   t |  dd¡ƒ}td|ƒ}|du s&J ‚dS )z[Test that download works properly when the parent folder of the download_dir does not existznon-existing-parent-folderzanother-non-existing-folderr   TNr   r   r   r   r	   Ú6test_downloader_using_non_existing_parent_download_dir   s
    
ÿ
r   N)Znltkr   r
   r   r   r   r   r	   Ú<module>   s   