o
    @»Biå  ã                   @   s8   d dl mZ d dlmZ d dlmZ G dd„ deƒZdS )é    )ÚTestCase)ÚPY3)ÚApplicationErrorc                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚApplicationErrorTestCasec                 C   s6   t ddƒ}tr|  dt|ƒ¡ dS |  dt|ƒ¡ dS )zi
        Unicode arguments in ApplicationError will not raise an exception when
        str()'d.
        úsome.urlõ   â˜ƒz\u2603N)r   r   ÚassertInÚstr©ÚselfÚerror© r   úa/var/www/html/Trade-python/venv/lib/python3.10/site-packages/autobahn/wamp/test/test_exception.pyÚtest_unicode_str#   s   
z)ApplicationErrorTestCase.test_unicode_strc                 C   s.   t ddƒ}trt| ¡ ƒ |  d| ¡ ¡ dS )z„
        Unicode arguments in ApplicationError will not raise an exception when
        the error_message method is called.
        r   r   N)r   r   ÚprintÚerror_messager   r
   r   r   r   Útest_unicode_errormessage.   s   
z2ApplicationErrorTestCase.test_unicode_errormessageN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   !   s    r   N)Úunittestr   Úsixr   Úautobahn.wamp.exceptionr   r   r   r   r   r   Ú<module>   s   