관리-도구
편집 파일: test_rfc1751.cpython-311.pyc
� O�DgY � � � d dl Z d dlZd dlmZmZ G d� de j � � Zi fd�Zedk rd� Z e j d� � � dS dS ) � N)�key_to_english�english_to_keyc � � e Zd Zd� Zd� ZdS )� RFC1751_Testsc �� � g d�}|D ]c\ }}t j |� � }t |� � }| � ||� � t |� � }| � ||� � �dd S )N))�EB33F77EE73D4053zTIDE ITCH SLOW REIN RULE MOT)� CCAC2AED591056BE4F90FD441C534766z8RASH BUSH MILK LOOK BAD BRIM AVID GAFF BAIT ROT POD LOVE)� EFF81F9BFBC65350920CDD7416DE8009z7TROD MUTE TAIL WARM CHAR KONG HAAG CITY BORE O TEAL AWL)�binascii�a2b_hexr �assertEqualr )�self�data�key_hex�words�key_bin�w2�k2s ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/Util/test_rfc1751.py�test1zRFC1751_Tests.test1 s� � �� � �� #� *� *�N�G�U��&�w�/�/�G���(�(�B����R��'�'�'���&�&�B����R��)�)�)�)� *� *� c �H � | � t t d� � d S )Ns 0000000)�assertRaises� ValueErrorr )r s r �test_error_key_to_englishz'RFC1751_Tests.test_error_key_to_english s � ����*�n�h�?�?�?�?�?r N)�__name__� __module__�__qualname__r r � r r r r s7 � � � � � �*� *� *� @� @� @� @� @r r c �2 � ddl m} |t � � }|S )Nr )�list_test_cases)�Crypto.SelfTest.st_commonr! r )�configr! �testss r � get_testsr% s( � �9�9�9�9�9�9��O�M�*�*�E��Lr �__main__c �B � t j t � � � � S )N)�unittest� TestSuiter% r r r �<lambda>r* % s � �H�&�y�{�{�3�3� r �suite)�defaultTest)r( r �Crypto.Util.RFC1751r r �TestCaser r% r r+ �mainr r r �<module>r0 s� �� ���� ���� >� >� >� >� >� >� >� >�@� @� @� @� @�H�%� @� @� @�. � � � � � �z���3�3�E��H�M�g�&�&�&�&�&�&� �r