ó
ç'ÊUc           @   sO   d  d l  Z  d  d l m Z d  d l m Z m Z d e  j f d „  ƒ  YZ d S(   iÿÿÿÿN(   t   LxmlDocument(   t   TextResponset   HtmlResponset   LxmlDocumentTestc           B   s   e  Z d  „  Z d „  Z RS(   c         C   sj   t  d d d ƒ} | j ƒ  } t | ƒ } t | ƒ } t | ƒ } | | k sT t ‚ | | k	 sf t ‚ d  S(   Ns   http://www.example.comt   bodys'   <html><head></head><body></body></html>(   R   t   copyR    t   AssertionError(   t   selft   r1t   r2t   doc1t   doc2t   doc3(    (    sD   /home/travis/build/scrapy/scrapy/tests/test_selector_lxmldocument.pyt   test_caching   s    c         C   s3   d } t  d d i d d 6d | ƒ} t | ƒ d  S(   Ns   test problematic   bodys-   http://example.com/catalog/product/blabla-123t   headerss   text/plain; charset=utf-8s   Content-TypeR   (   R   R    (   R   R   t   response(    (    sD   /home/travis/build/scrapy/scrapy/tests/test_selector_lxmldocument.pyt   test_null_char   s
    		(   t   __name__t
   __module__R   R   (    (    (    sD   /home/travis/build/scrapy/scrapy/tests/test_selector_lxmldocument.pyR      s   	(   t   unittestt   scrapy.selector.lxmldocumentR    t   scrapy.httpR   R   t   TestCaseR   (    (    (    sD   /home/travis/build/scrapy/scrapy/tests/test_selector_lxmldocument.pyt   <module>   s   