o
    ¼>hé  ã                   @   s:   d dl mZmZ d dlZd dlmZ G dd„ dejƒZdS )é    )ÚTransportDetailsÚSessionDetailsN)ÚTRANSPORT_DETAILS_1c                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚTestSessionDetailsc                 C   sN   t ƒ }| ¡ }|  |d d d d d d d d d d d d dœ¡ t  |¡}|  ||¡ d S )N©ÚrealmÚsessionÚauthidÚauthroleÚ
authmethodÚauthproviderÚ	authextraÚ
serializerÚ	transportÚresumedÚ	resumableÚresume_token)r   ÚmarshalÚassertEqualÚparse)ÚselfÚsd1ÚdataÚsd2© r   úŒ/var/www/vedio/testing/chatpythonscript.ninositsolution.com/env/lib/python3.10/site-packages/autobahn/wamp/test/test_wamp_session_details.pyÚ
test_empty%   s$   ô
zTestSessionDetails.test_emptyc                 C   sÆ   t ƒ }t t¡}d|_d|_d|_d|_d|_d|_	dg d¢d	œ|_
d
|_||_d|_d|_d|_| ¡ }|  ||j|j|j|j|j|j	|j
|j|j ¡ |j|j|jdœ¡ t  |¡}|  ||¡ d S )NÚrealm1iš  ÚhomerÚuserÚwampcraÚstaticÚbar)é   é   é   )ÚfooÚbazÚjsonFTz$8713e25a-d4f5-48b7-9d6d-eda66603a1abr   )r   r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   )r   r   Útd1r   r   r   r   r   Útest_attributes9   s>   
ô
z"TestSessionDetails.test_attributesN)Ú__name__Ú
__module__Ú__qualname__r   r*   r   r   r   r   r   #   s    r   )Úautobahn.wamp.typesr   r   ÚunittestÚ.autobahn.wamp.test.test_wamp_transport_detailsr   ÚTestCaser   r   r   r   r   Ú<module>   s   