ó
¾?Tc  c           @   sD   d  d l  Z d  d l j j Z d d l m Z d „  Z d „  Z	 d S(   iÿÿÿÿNi   (   t   urlopenc         C   s    d } d g } | | | ƒ d S(   Ns   200 OKs   Content-types
   text/plains   Hello World!(   s   Content-types
   text/plain(    (   t   environt   start_responset   statust   response_headers(    (    s;   /home/prologic/work/circuits/tests/web/test_wsgi_gateway.pyt   application   s    	c         C   sÜ   t  |  j j j ƒ } | j ƒ  } d } | | k } | sÎ t j d
 | f d | | f ƒ i t j | ƒ d 6d t j	 ƒ  k s‹ t j
 | ƒ rš t j | ƒ n d d 6} d i | d	 6} t t j | ƒ ƒ ‚ n  d  } } d  S(   Ns   Hello World!s   ==s   %(py0)s == %(py3)st   py3t   st   py0t    s   assert %(py5)st   py5(   s   ==(   s   %(py0)s == %(py3)ss   assert %(py5)s(   R    t   servert   httpt   baset   readt
   @pytest_art   _call_reprcomparet	   _safereprt   @py_builtinst   localst   _should_repr_global_namet   AssertionErrort   _format_explanationt   None(   t   webappt   fR   t   @py_assert2t   @py_assert1t   @py_format4t   @py_format6(    (    s;   /home/prologic/work/circuits/tests/web/test_wsgi_gateway.pyt   test   s       l   (
   t   __builtin__R   t   _pytest.assertion.rewritet	   assertiont   rewriteR   t   helpersR    R   R   (    (    (    s;   /home/prologic/work/circuits/tests/web/test_wsgi_gateway.pyt   <module>   s     	