python (3.11.7)
    e8                         d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl	m
Z
  G d d          Z G d dej                  Z
d	 ZdS )
    N)
HTTPException)support)BytesIOc                       e Zd ZdZdZdZdZdZdZdZ	dZ
d Zd Zd Z
d	 Zd
 Zd Zd Zd
 Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd Zd ZdS )TestBase N   r   u   c                    | j         t          j        | j                  | _         | j         j        | _        | j         j        | _        | j         j        | _        | j         j        | _	        | j         j
        | _
        | j         j        | _        d S N)codeccodecslookupencodingencodedecodestreamreaderreaderstreamwriterwriterincrementalencoderincrementaldecoderselfs    O/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/multibytecodec_support.pysetUpzTestBase.setUp   sm    :t}55DJj'j'j-j-"&*"?"&*"?    c                    g }| j         D ]T}|                    d          }|                                }|dk    sJ d |D             }|                    |           Ut	          | D ]\  }}|                     |          d         }|                     ||                    d                     | j        r/|                     ||                     |          d                    d S )N   
r   c                     g | ]}|d z   S )r    ).0lines     r   
<listcomp>z-TestBase.test_chunkcoding.<locals>.<listcomp>*   s    444dTE\444r   r   utf-8)	tstringsplitpopappendzipr   assertEqual
roundtriptestr   )r   
tstring_linesblineslastnativeutf8us           r   test_chunkcodingzTestBase.test_chunkcoding$   s    
 	( 	(AGGENNE99;;D3;;;;44e444E  ''''/ 	<