
    "h                         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 j                  e      Z G d d	ej                        Zy)
    N   )internet_available_onlylog_infozArtur Barseghyanz2013-2023 Artur BarseghyanzGPL 2.0/LGPL 2.1)TestCommandsc                   J    e Zd ZdZd Zeed               Zeed               Zy)r   zTld commands tests.c                      y)zSet up.N )selfs    T/var/www/html/sandstorm/venv/lib/python3.12/site-packages/tld/tests/test_commands.pysetUpzTestCommands.setUp   s        c                 r    t        j                  dg      j                         }| j                  |d       |S )6Test updating the tld names (re-fetch mozilla source).update-tld-namesr   
subprocesscheck_outputstripassertEqualr
   ress     r   test_1_update_tld_names_commandz,TestCommands.test_1_update_tld_names_command   s6     %%'9&:;AACc"
r   c                 t    t        j                  ddg      j                         }| j                  |d       |S )r   r   mozillar   r   r   s     r   'test_1_update_tld_names_mozilla_commandz4TestCommands.test_1_update_tld_names_mozilla_command   s8     %%'99&EFLLNc"
r   N)	__name__
__module____qualname____doc__r   r   r   r   r   r	   r   r   r   r      sB          r   r   )loggingr   unittestbaser   r   
__author____copyright____license____all__	getLoggerr   LOGGERTestCaser   r	   r   r   <module>r*      sK       3
, 
			8	$8$$ r   