
    AHj                         d dl Z d dlZd dlZddlmZ dZdZdZdZ e j                  e
      Z G d d	ej                        Zy)
    N   )internet_available_onlyzArtur Barseghyanz2013-2026 Artur Barseghyanz,MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later)TestCommandsc                   6    e Zd ZdZd Zed        Zed        Zy)r   zTld commands tests.c                      y)zSet up.N )selfs    O/root/tools/cai/cai_env/lib/python3.12/site-packages/tld/tests/test_commands.pysetUpzTestCommands.setUp   s        c                 p    t        j                  dg      j                         }| j                  |d       y)6Test updating the tld names (re-fetch mozilla source).update-tld-namesr   N
subprocesscheck_outputstripassertEqualr	   ress     r
   test_update_tld_names_commandz*TestCommands.test_update_tld_names_command   s1     %%'9&:;AACc"r   c                 r    t        j                  ddg      j                         }| j                  |d       y)r   r   mozillar   Nr   r   s     r
   %test_update_tld_names_mozilla_commandz2TestCommands.test_update_tld_names_mozilla_command   s3     %%'99&EFLLNc"r   N)__name__
__module____qualname____doc__r   r   r   r   r   r   r
   r   r      s2     # #
 # #r   r   )loggingr   unittestbaser   
__author____copyright____license____all__	getLoggerr   LOGGERTestCaser   r   r   r
   <module>r)      sK       )
,<
			8	$#8$$ #r   