o
    CŒh  ã                   @   sX   d dl Z d dlZd dlZddlmZmZ dZdZdZdZ	e  
e¡ZG dd	„ d	ejƒZdS )
é    Né   )Úinternet_available_onlyÚlog_infozArtur Barseghyanz2013-2025 Artur Barseghyanz,MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later)ÚTestCommandsc                   @   s8   e Zd ZdZdd„ Zeedd„ ƒƒZeedd„ ƒƒZdS )	r   zTld commands tests.c                 C   s   dS )zSet up.N© )Úselfr   r   úX/home/air/segue/gemini/back/venv/lib/python3.10/site-packages/tld/tests/test_commands.pyÚsetUp   s    zTestCommands.setUpc                 C   s    t  dg¡ ¡ }|  |d¡ |S )ú6Test updating the tld names (re-fetch mozilla source).úupdate-tld-namesó    ©Ú
subprocessÚcheck_outputÚstripÚassertEqual©r   Úresr   r   r   Útest_1_update_tld_names_command   s   z,TestCommands.test_1_update_tld_names_commandc                 C   s"   t  ddg¡ ¡ }|  |d¡ |S )r
   r   Úmozillar   r   r   r   r   r   Ú'test_1_update_tld_names_mozilla_command   s   z4TestCommands.test_1_update_tld_names_mozilla_commandN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r   r   r   r   r   r   r   r   r      s    r   )Úloggingr   ÚunittestÚbaser   r   Ú
__author__Ú__copyright__Ú__license__Ú__all__Ú	getLoggerr   ÚLOGGERÚTestCaser   r   r   r   r   Ú<module>   s   
