Ñò
¾?Tc  c           @   sD   d  d k  Z d  d k i i Z d d k l 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  |  i i i ƒ } | i ƒ  } d } | | j } | p™ t i d	 | f d
 | | f ƒ h d t i ƒ  j p t i	 | ƒ o t i
 | ƒ n d d 6t i
 | ƒ d 6} d h | d 6} t t i | ƒ ƒ ‚ n d  } } d  S(   Ns   Hello World!s   ==s   %(py0)s == %(py3)st   st   py0t   py3s   assert %(py5)st   py5(   s   ==(   s   %(py0)s == %(py3)s(   R    t   servert   httpt   baset   readt
   @pytest_art   _call_reprcomparet   @py_builtinst   localst   _should_repr_global_namet	   _safereprt   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       o   (
   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     	