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: //lib/python3/dist-packages/websocket/tests/__pycache__/test_cookiejar.cpython-310.pyc
o

�_a��@sDdZ	ddlZddlmZGdd�dej�Zedkr e��dSdS)z

�N)�SimpleCookieJarc@s$eZdZdd�Zdd�Zdd�ZdS)�
CookieJarTestcCslt�}|�d�|�|jd�t�}|�d�|�|jd�t�}|�d�|�d|jv�t�}|�d�|�d|jv�|�d|jv�t�}|�d�|�|�d�d	�|�|�d�d�t�}|�d�|�d
�|�|�d�d�t�}|�d�|�d�|�|�d�d�t�}|�d�|�d
�|�|�d�d	�|�|�d�d�|�|�d�d�dS)N��4Cookie with no domain should not be added to the jar�a=b�a=b; domain=.abc�.abc�a=b; domain=abc�abc�a=b; c=d; domain=abc�a=b; c=d�e=f; domain=abcz
a=b; c=d; e=f�e=f; domain=.abc�e=f; domain=xyz�xyz�e=f�	something)r�add�assertFalse�jar�
assertTrue�assertEqual�get��self�
cookie_jar�r�@/usr/lib/python3/dist-packages/websocket/tests/test_cookiejar.py�testAdds>










zCookieJarTest.testAddcCs<t�}|�d�|�|jd�t�}|�d�|�d|jv�t�}|�d�|�d|jv�|�d|jv�t�}|�d�|�|�d�d�t�}|�d�|�d	�|�|�d�d
�t�}|�d�|�d�|�|�d�d
�t�}|�d�|�d�|�|�d�d�|�|�d
�d
�|�|�d�d�dS)Nrrrrr	r
rrr
rrrrrr)r�setrrrrrrrrr�testSetDs6









zCookieJarTest.testSetcCs�t�}|�d�|�|�d�d�|�|�d�d�|�|�d�d�|�|�d�d�|�d�|�|�d�d�|�|�d�d�|�|�d�d�|�|�d�d�dS)	Nza=b; c=d; domain=abc.comzabc.comrz	x.abc.comz
abc.com.esrzxabc.comza=b; c=d; domain=.abc.com)rrrrrrrr�testGetgs

zCookieJarTest.testGetN)�__name__�
__module__�__qualname__rr r!rrrrrs(#r�__main__)�__doc__�unittest�websocket._cookiejarr�TestCaserr"�mainrrrr�<module>s[�