HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/h11/tests/__pycache__/test_headers.cpython-310.pyc
o

���g��@s^ddlZddlmZddlmZmZmZmZmZddl	m
Z
d
dd�Zd
d	d
�Zd
dd�Z
dS)�N�)�Request)�get_comma_header�has_expect_100_continue�Headers�normalize_and_validate�set_comma_header)�LocalProtocolError�returncCstdg�dgks
J�tdg�dgksJ�t�t��
tdg�Wd�n1s)wYt�t��
tdg�Wd�n1sCwYt�t��
}tdg�Wd�n1s]wYdt|j�vskJ�t�t��
tdg�Wd�n1s�wYt�t��
tdg�Wd�n1s�wYt�t��
td	g�Wd�n1s�wYt�t��
}td
g�Wd�n1s�wYdt|j�vs�J�t�t��
tdg�Wd�n1s�wYt�t��
td
g�Wd�n	1�swYt�t��
tdg�Wd�n	1�s'wYt�t��
tdg�Wd�n	1�sBwYt�t��
tdg�Wd�n	1�s]wYt�t��
tdg�Wd�n	1�sxwYtdg�dgk�s�J�t�t��
tdg�Wd�n	1�s�wYt�t��
tdg�Wd�n	1�s�wYt�t��tddg�Wd�n	1�s�wYtddg�dgk�s�J�tdg�dgk�s�J�t�t��tgd��Wd�n	1�swYt�t��
tdg�Wd�n	1�s#wYtdg�dgk�s3J�tdg�dgk�s>J�t�t��
}tdg�Wd�n	1�sTwY|jjd k�sbJ�t�t��}tddg�Wd�n	1�sywY|jjd k�s�J�dS)!N)�foo�bar)�foo�bar)sfoo r)s foor)sfoo bar�bazzfoo bar)sfoobarr)sfoo�barr)sfoobarr)rzbar
bazzbar\rbaz)rzbar
baz)rzbarbaz)rzbarbaz  )rz  barbaz)rzbarbaz	)rz	barbaz��Content-Length�1)�content-length�1)r�asdf)r�1x�r�2)r�0)r�0)rz0 , 0)rrr)rz1 , 1,2)�Transfer-Encoding�chunked)stransfer-encodingschunked)r�cHuNkEd)r�gzipi�)r�pytest�raisesr	�str�value�error_status_hint)�excinfo�r%�A/usr/local/lib/python3.10/dist-packages/h11/tests/test_headers.py�test_normalize_and_validates�������������������
����������r'cCs�tgd��}t|d�gd�ksJ�t|dddg�}t�t��t|dddg�Wd�n1s1wY|gd�ks>J�t|d	d
g�}|gd�ksMJ�dS)N))�
Connection�close)�whatever�	something)�
connectiONzfOo,, , BAR�
connection)�closer
r�newthing�a�bz  a)�r-r.)�whatevers	something�r-sfOo,, , BAR�r/�a�r/�br3zdifferent thing)r2r4r5r7)r3sdifferent thing)rrrrr r	)�headersr%r%r&�test_get_set_comma_header_s��r:cCslttddddgd��s
J�ttdddgd��rJ�ttddddgd��s&J�ttddddgdd��r4J�dS)	N�GET�/)�Hostzexample.com)�Expectz100-continue)�method�targetr9)r>z100-Continuez1.0)r?r@r9�http_version)rrr%r%r%r&�test_has_100_continue�s2�������rB)r
N)r�_eventsr�_headersrrrrr�_utilr	r'r:rBr%r%r%r&�<module>s

Q#