ó
ç'ÊUc           @   s9   d  d l  Z  d  d l m Z d e  j f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   decode_chunked_transfert   ChunkedTestc           B   s   e  Z d  „  Z RS(   c         C   s^   d d } | d d 7} | d 7} | d 7} | d	 7} t  | ƒ } |  j | d
 d d ƒ d S(   sJ   Example taken from: http://en.wikipedia.org/wiki/Chunked_transfer_encodings   25
s'   This is the data in the first chunk

s   1C
s   and this is the second one

s   3
s   con
s   8
s
   sequence
s   0

s%   This is the data in the first chunk
s   and this is the second one
t   consequenceNs   3
con
s   8
sequence
(   R    t   assertEqual(   t   selft   chunked_bodyt   body(    (    s9   /home/travis/build/scrapy/scrapy/tests/test_utils_http.pyt   test_decode_chunked_transfer   s    



	(   t   __name__t
   __module__R   (    (    (    s9   /home/travis/build/scrapy/scrapy/tests/test_utils_http.pyR      s   (   t   unittestt   scrapy.utils.httpR    t   TestCaseR   (    (    (    s9   /home/travis/build/scrapy/scrapy/tests/test_utils_http.pyt   <module>   s   