o
    Qœ_‘  ã                   @   s8   d dl mZ d dlmZ d dlmZ G dd„ deƒZdS )é    )Ú	validator)ÚAsyncHTTPTestCase)ÚWSGIContainerc                   @   s$   e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚWSGIContainerTestc                 C   s   d}dg}|||ƒ dgS )Nz200 OK)zContent-Typez
text/plainó   Hello world!© )ÚselfÚenvironÚstart_responseÚstatusÚresponse_headersr   r   ú8/usr/lib/python3/dist-packages/tornado/test/wsgi_test.pyÚwsgi_app	   s   
zWSGIContainerTest.wsgi_appc                 C   s   t t| jƒƒS )N)r   r   r   )r   r   r   r   Úget_app   s   zWSGIContainerTest.get_appc                 C   s   |   d¡}|  |jd¡ d S )Nú/r   )ÚfetchÚassertEqualÚbody)r   Úresponser   r   r   Útest_simple   s   
zWSGIContainerTest.test_simpleN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r      s    r   N)Úwsgiref.validater   Útornado.testingr   Útornado.wsgir   r   r   r   r   r   Ú<module>   s    