ó
wŰjc           @   s   d  Z  d Z d Z d d l m Z d d l Z e j d d e Z d e j	 f d	     YZ
 d
   Z e d k r{ e   n  d S(   s<   Test module to thest the xmllib module.
   Sjoerd Mullender
sI  <?xml version="1.0" encoding="UTF-8" standalone='yes' ?>
<!-- comments aren't allowed before the <?xml?> tag,
     but they are allowed before the <!DOCTYPE> tag -->
<?processing instructions are allowed in the same places as comments ?>
<!DOCTYPE greeting [
  <!ELEMENT greeting (#PCDATA)>
]>
<greeting>Hello, world!</greeting>
s   <foo xmlns='URI' attr='val'/>i˙˙˙˙(   t   test_supportNt   xmllibt
   deprecatedt   XMLParserTestCasec           B   s   e  Z d    Z d   Z RS(   c         C   s8   t  j   } x t D] } | j |  q W| j   d  S(   N(   R   t	   XMLParsert   testdoct   feedt   close(   t   selft   parsert   c(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyt   test_simple   s    c         C   sj   d t  j f d     Y} |   } | j t  | j   |  j | j d  |  j | j i d d 6 d  S(   Nt   Hc           B   s   e  Z d    Z RS(   c         S   s   | | |  _  |  _ d  S(   N(   t   namet   attr(   R   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyt   unknown_starttag!   s    (   t   __name__t
   __module__R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyR       s   s   URI foot   valR   (   R   R   R   t   nsdocR   t   assertEqualR   R   (   R   R   t   h(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyt   test_default_namespace   s    	
(   R   R   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyR      s   	c           C   s   t  j t  d  S(   N(   R    t   run_unittestR   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyt	   test_main,   s    t   __main__(   t   __doc__R   R   t   testR    t   unittestt   import_modulet   TrueR   t   TestCaseR   R   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_xmllib.pyt   <module>   s   	