|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/test/__pycache__/ |
U
>��g�G � @ s� d dl Z d dlZd dlZd dlZdddddddgZd d
ddd
ddgZee ddg ZG dd� de j�ZG dd� de�Z G dd� de�Z
G dd� de�Zedkr�e �
� dS )� N�
b2a_base64�b2a_hex�b2a_hqx�b2a_qp�b2a_uu�hexlify�rlecode_hqx�
a2b_base64�a2b_hex�a2b_hqx�a2b_qp�a2b_uu� unhexlify�
rledecode_hqx�crc32�crc_hqxc @ s� e Zd ZeZdZeeed��7 Zed7 Zdd� Zdd� Zdd � Z d
d� Z
dd
� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*S )+�BinASCIITests. The quick brown fox jumps over the lazy dog.
� s
Hello world.
c C s | � | j�| _d S �N)� type2test�rawdata�data��self� r �1/opt/cppython/lib/python3.8/test/test_binascii.py�setUp s zBinASCIITest.setUpc C s( | � ttjt�� | � ttjt�� d S r )�
assertTrue�
issubclass�binascii�Error� ExceptionZ
Incompleter r r r �test_exceptions s zBinASCIITest.test_exceptionsc C s6 t D ],}| �ttt|�d�� | �ttt|�� qd S )N�__call__)�
all_functionsr �hasattr�getattrr �assertRaises� TypeError)r �namer r r �test_functions! s zBinASCIITest.test_functionsc C s d}| j d |� }ttt�D ]�\}}tt|�}tt|�}z || �|��}|| �|��}W n6 tk
r� } z| �d� ||| �� W 5 d } ~ X Y nX |dkr�|\}}
| �
||d� ||||�� | �|t� | �|t� | �
t|�d� q| �t�|d�t� | �t�|�t� d S )N�- �{}/{} conversion raises {!r}r �{}/{} conversion: {!r} != {!r}� r )r �zip�
a2b_functions�
b2a_functionsr&