
    ,h                     <    d Z ddlZddlZddlmZ d Zd Zd Zd Zy)z%Common functions for SelfTest modules    N)bc                 H    t        j                         j                  |       S )zReturn a list of TestCase instances given a TestCase class

    This is useful when you have defined test* methods on your TestCase class.
    )unittest
TestLoaderloadTestsFromTestCase)class_s    [/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/Crypto/SelfTest/st_common.pylist_test_casesr
       s    
  66v>>    c                     t        | t              r(t        dj                  | j	                                     S t        d      j                  | j	                               S )z,Remove whitespace from a text or byte string )
isinstancestrr   joinsplitss    r	   strip_whitespacer   '   s?    !C#$$uzz!'')$$r   c                 >    t        j                  t        |             S )z2Convert hexadecimal to binary, ignoring whitespace)binasciia2b_hexr   r   s    r	   r   r   .   s    ,Q/00r   c                 ,    t        j                  |       S )zConvert binary to hexadecimal)r   b2a_hexr   s    r	   r   r   2   s     Ar   )	__doc__r   r   Crypto.Util.py3compatr   r
   r   r   r    r   r	   <module>r      s'   2 ,   #?%1r   