Ë
    (üàg™  ã                   ó<   — 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 )z�Return 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    úW/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/Crypto/SelfTest/st_common.pyÚlist_test_casesr
       s   € ô
 ×ÑÓ ×6Ñ6°vÓ>Ð>ó    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ÔÜ�—‘˜Ÿ™›Ó#Ó$Ð$ä�‹u�z‰z˜!Ÿ'™'›)Ó$Ð$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   