mς
­fIc           @   s   d  Z  d Z d Z d k Z e i d d e d  d k l Z d k Z d k	 Z	 d e i
 f d	     YZ d
   Z e d j o 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'/>Nt   ignores   .* xmllib .* obsolete.*s   xmllib$(   s   test_supportt   XMLParserTestCasec           B   s   t  Z d   Z d   Z RS(   Nc         C   s8   t  i   } x t D] } | i |  q W| i   d  S(   N(   t   xmllibt	   XMLParsert   parsert   testdoct   ct   feedt   close(   t   selfR   R   (    (    t-   /mit/python/lib/python2.4/test/test_xmllib.pyt   test_simple   s
     c         C   sl   d t  i f d     Y} |   } | i t  | i   |  i | i	 d  |  i | i
 h  d d < d  S(   Nt   Hc           B   s   t  Z d   Z RS(   Nc         C   s   | | |  _  |  _ d  S(   N(   t   namet   attrR	   (   R	   R   R   (    (    R
   t   unknown_starttag$   s    (   t   __name__t
   __module__R   (    (    (    R
   R   #   s   s   URI fooR   t   val(   R   R   R   t   hR   t   nsdocR   R	   t   assertEqualsR   R   (   R	   R   R   (    (    R
   t   test_default_namespace"   s    	
(   R   R   R   R   (    (    (    R
   R      s   	c           C   s   t  i t  d  S(   N(   t   test_supportt   run_unittestR   (    (    (    R
   t	   test_main/   s    t   __main__(   t   __doc__R   R   t   warningst   filterwarningst   DeprecationWarningt   testR   t   unittestR   t   TestCaseR   R   R   (   R   R   R   R    R   R   R   R   (    (    R
   t   ?   s   	
			