-
<c       s|     d  k  l Z l Z l Z l Z  d k l Z  d k Z  d k	 Z	  d k
 Z
 	 d k Z 
 d k l Z  e d j o  e
 i d Z n
  e Z  e	 i i e	 i i e  d e	 i d  Z  [  d d	  Z  d
 e _  d   Z " d   Z ( d   Z R d   Z _ d   Z n d   Z u d   Z } d   Z   d   Z!  d   Z"  d   Z#  d   Z$  d   Z%  d   Z&  d   Z'  d   Z(  d   Z)  d   Z* 
d   Z+ d   Z, "d   Z- 1d    Z. 4d!   Z/ 6d"   Z0 8d#   Z1 :d$   Z2 <d%   Z3 >d&   Z4 Gd'   Z5 Id(   Z6 Rd)   Z7 [d*   Z8 fd+   Z9 nd,   Z: pd-   Z; xd.   Z< zd/   Z= |d0   Z> ~d1   Z? d2   Z@ d3   ZA d4   ZB d5   ZC d6   ZD d7   ZE d8   ZF d9   ZG d:   ZH d;   ZI d<   ZJ d=   ZK d>   ZL d?   ZM d@   ZN dA   ZO dB   ZP dC   ZQ dD   ZR dE   ZS dF   ZT dG   ZU dH   ZV dI   ZW dJ   ZX dK   ZY dL   ZZ dM   Z[ dN   Z\ dO   Z] dP   Z^ dQ   Z_ dR   Z` dS   Za dT   Zb dU   Zc dV   Zd "dW   Ze 1dX   Zf =dY   Zg ceh   ii   Zj dej ik   fg  Zl hxGej Dh]<Zm iem in d  o#jeh   em Zo ky leo   mdZ Gem GHne ep e iq  d j od[  pep e iq  oC qd\ GHre o se iq ir   d d] !GHn wep e iq  GHn xh  e _q Wnk yzel is em  {d^ Gem GH|e
 it iu   }e iv e
 iw     ~e
 iw   d
 GHh  e _q n Xn qWel o3 d_ GHx el D] Zm d` em GHq7WHn	 da GHex e _y d e _ d S(b   (   s   parses   Nodes   Documents   parseString(   s   HierarchyRequestErrN(   s   verboses   __main__i    s   tests   xmls   Testc    s6     |  o  d | GHn  d | GH t  d  S(   Ns   Passed s   Failed (   s   tests   testnames	   Exception(   s   tests   testname(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   confirm s   
i   c     s[     d k  l  }  t | t t  i     }   |  i     t t |  t	   d  S(   N(   s   StringIO(
   s   StringIOs   parses   opens   tstfiles   reads   doms   unlinks   confirms
   isinstances   Document(   s   doms   StringIO(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseFromFile s   !c     sK   " # t  t  }  $ t |  i d  |  i i d  j  & |  i   d  S(   Ns   LI(   s   parses   tstfiles   doms   confirms   getElementsByTagNames   documentElements   unlink(   s   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetElementsByTagName" s   (c     s  ( ) t  d  } * | i } + | i d } , | i d  } - | i | |  . t	 t
 | i  d j o | i i d j o | i d | j ov | i i d  | j o] | i d | j oI | i i d  | j o0 | i | j o  | i | j o | i   d j 7 d  8 | i d  } 9 | i | t  : t	 t
 | i  d j o | i i d j o | i d | j ov | i i d  | j o] | i d | j oI | i i d  | j o0 | i | j o  | i | j o | i   d	 j C d  D | i d
  }  E | i |  |  F t	 t
 | i  d j o | i i d j o | i d |  j ov | i i d  |  j o] | i d | j oI | i i d  | j o0 |  i | j o  | i |  j o | i   d j O d  P | i   d  S(   Ns   <doc><foo/></doc>i    s   elementi   i   s   <doc><element/><foo/></doc>s0   testInsertBefore -- node properly placed in treei   s%   <doc><element/><foo/><element/></doc>s   bari   s+   <doc><element/><foo/><bar/><element/></doc>(   s   parseStrings   doms   documentElements   roots
   childNodess   elems   createElements   nelems   insertBefores   confirms   lens   lengths   items
   firstChilds	   lastChilds   toxmls   Nones   previousSiblings   nelem2s   nextSiblings   unlink(   s   nelem2s   nelems   doms   roots   elem(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testInsertBefore( s    	
	
	
c     s   R S t  d  } T | i d  } U | i d  } V | i d  } W | i d  } X | i i |  Y | i	   }  Z |  i |  [ |  i |  \ |  i |  ] | | | | | |  f Sd  S(   Ns   <doc/>s   originals   foos   bars   bat(   s   parseStrings   doms   createTextNodes   origs   c1s   c2s   c3s   documentElements   appendChilds   createDocumentFragments   frag(   s   frags   doms   c3s   c2s   c1s   orig(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   _create_fragment_test_nodesR s   c     s  _ ` t    \ } } } } } }  a | i i |  t	  b t
 t | i i  | | | | f j c d  d |  i   e | i   g t    \ } } } } } }  h | i i |  |  i t
 t | i i  | | | | f j j d  k |  i   l | i   d  S(   Ns   insertBefore(<fragment>, None)s   insertBefore(<fragment>, orig)(   s   _create_fragment_test_nodess   doms   origs   c1s   c2s   c3s   frags   documentElements   insertBefores   Nones   confirms   tuples
   childNodess   unlink(   s   frags   doms   c3s   c2s   c1s   orig(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testInsertBeforeFragment_ s   '
'
c     s   n o t  t  }  p |  i i |  i d   q t |  i i d i d j  r t |  i i d i	 d j  s |  i
   d  S(   Nu   Hellois   #comments   Hello(   s   parses   tstfiles   doms   documentElements   appendChilds   createComments   confirms
   childNodess   nodeNames   datas   unlink(   s   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAppendChildn s
     c     s   u v t    \ } } } } } }  w | i i |   x t	 t
 | i i  | | | | f j y d  z |  i   { | i   d  S(   Ns   appendChild(<fragment>)(   s   _create_fragment_test_nodess   doms   origs   c1s   c2s   c3s   frags   documentElements   appendChilds   confirms   tuples
   childNodess   unlink(   s   frags   doms   c3s   c2s   c1s   orig(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAppendChildFragmentu s   '
c     s   } ~ t    \ } } } } } }   | i i |  |   | i	    t
 t | i i  | | | f j  d   |  i	    | i	   d  S(   Ns   replaceChild(<fragment>)(   s   _create_fragment_test_nodess   doms   origs   c1s   c2s   c3s   frags   documentElements   replaceChilds   unlinks   confirms   tuples
   childNodes(   s   frags   doms   c3s   c2s   c1s   orig(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testReplaceChildFragment} s   $
c     s    t    }  | i d  }  | i d  }  y  | i |  Wn  t j
 o
  n
 X d GH | i |   y  | i | |  Wn  t j
 o
  n
 X d GH y  | i	 | |  Wn  t j
 o
  n
 X d GH | i
 }   y  |  i |  Wn  t j
 o
  n
 X d GH y  |  i |  Wn  t j
 o
  n
 X d GH | i |   | i   d  S(   Ns   elements   texts0   dom.appendChild didn't raise HierarchyRequestErrs:   NamedNodeMap.setNamedItem didn't raise HierarchyRequestErrs<   NamedNodeMap.setNamedItemNS didn't raise HierarchyRequestErr(   s   Documents   doms   createElements   elems   createTextNodes   texts   appendChilds   HierarchyRequestErrs   insertBefores   replaceChilds
   attributess   nodemaps   setNamedItems   setNamedItemNSs   unlink(   s   nodemaps   doms   texts   elem(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testLegalChildren s@             c     s     t    }  | i d  }  | i }  d | d < | i d  }   t |  i	 | j  d   t |  i
 | j  d   t |  i d j  d   t |  i d j  d   | i    | i   d  S(	   Ns   elements   bars   fooi    s-   NamedNodeMap.__setitem__() sets ownerDocuments,   NamedNodeMap.__setitem__() sets ownerElements%   NamedNodeMap.__setitem__() sets values)   NamedNodeMap.__setitem__() sets nodeValue(   s   Documents   doms   createElements   elems
   attributess   attrss   items   as   confirms   ownerDocuments   ownerElements   values	   nodeValues   unlink(   s   as   doms   attrss   elem(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testNamedNodeMapSetItem s   



c     sa     t  t  }   t |    |  i |  i d    t |  i d i   |  i   d  S(   Ns   fooi(   s   parses   tstfiles   doms   confirms   appendChilds   createComments
   childNodess   unlink(   s   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testNonZero s
   c     s#     t  t  }   |  i   d  S(   N(   s   parses   tstfiles   doms   unlink(   s   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys
   testUnlink s   c     sI     t    }   |  i |  i d    t |  i   |  i   d  S(   Ns   abc(   s   Documents   doms   appendChilds   createElements   confirms   documentElements   unlink(   s   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testElement s   c     s     t  d  }  | i }  | i d d   t | i   d j d   | i d  }   t |  i	 | j  d   t |  i
 | i j  d   | i   d  S(   Ns   <abc/>s   spams   jam2s   <abc spam="jam2"/>s   testAAAs!   setAttribute() sets ownerDocuments    setAttribute() sets ownerElement(   s   parseStrings   doms   documentElements   els   setAttributes   confirms   toxmls   getAttributeNodes   as   ownerDocuments   ownerElements   unlink(   s   as   els   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAAA s   

c     sq     t  d  }  | i }   |  i d d   |  i d d   t |  i   d j d   | i   d  S(   Ns   <abc/>s   spams   jams   jam2s   <abc spam="jam2"/>s   testAAB(   s   parseStrings   doms   documentElements   els   setAttributes   confirms   toxmls   unlink(   s   els   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAAB s   c     sW    t    }  | i | i d   }   |  i d d   t |  i d  d j   t |  i d i	 d j   |  i d d   t |  i d  d j   t |  i d i	 d j   t t
 |  i  d j   |  i d d   t |  i d  d j   t |  i d i	 d j   t t
 |  i  d j   | i   d  S(   Ns   abcs   defs   ghis   jkls   mnoi   s   newval(   s   Documents   doms   appendChilds   createElements   childs   setAttributes   confirms   getAttributes
   attributess   values   lens   unlink(   s   childs   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAddAttr s   c     s     t    }  | i | i d   }   t t |  i  d j   |  i d d   t t |  i  d j   |  i d = t t |  i  d j   | i	   d  S(   Ns   abci    s   defs   ghii   (
   s   Documents   doms   appendChilds   createElements   childs   confirms   lens
   attributess   setAttributes   unlink(   s   childs   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testDeleteAttr s   c     s     t    } | i | i d   }  |  i d d  t t |  i  d j  |  i	 d  t t |  i  d j  | i
   d  S(   Ns   abcs   defs   ghii   i    (   s   Documents   doms   appendChilds   createElements   childs   setAttributes   confirms   lens
   attributess   removeAttributes   unlink(   s   childs   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testRemoveAttr s   c     s   
t    } | i | i d d   }  |  i d d d  |  i d d d  t t |  i  d j  |  i	 d d  t t |  i  d	 j  | i
   d  S(
   Ns   http://www.python.orgs
   python:abcs   http://www.w3.orgs   xmlns:pythons   python:abcattrs   fooi   s   abcattri   (   s   Documents   doms   appendChilds   createElementNSs   childs   setAttributeNSs   confirms   lens
   attributess   removeAttributeNSs   unlink(   s   childs   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testRemoveAttrNS
s   
c     s   t    } | i | i d   } | i d d  t t | i  d j  | i	 d  }  | i |   t t | i  d j   | i   d  S(   Ns   foos   spams   jami   i    (   s   Documents   doms   appendChilds   createElements   childs   setAttributes   confirms   lens
   attributess   getAttributeNodes   nodes   removeAttributeNodes   unlink(   s   nodes   doms   child(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testRemoveAttributeNodes   c     s  "#t  d  } $| i }  %|  i d d  &t t |  i  d j  '|  i d d  (t t |  i  d j  )d |  i d <*t t |  i  d j  +|  i d d  ,t t |  i  d j  -d	 |  i d <.t t |  i  d j  /| i   d  S(
   Ns   <abc/>s   spams   jami   s   bams   hams   spam2i   s   bam2(	   s   parseStrings   doms   documentElements   els   setAttributes   confirms   lens
   attributess   unlink(   s   els   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testChangeAttr"s   c      s
   12d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetAttrList1s   c      s
   44d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetAttrValues4s    c      s
   66d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetAttrLength6s    c      s
   88d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetAttribute8s    c      s
   ::d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetAttributeNS:s    c      s
   <<d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetAttributeNode<s    c     sZ   >?d } Bt |  }  C|  i d d  } Dt t |  d j  E|  i   d  S(   NsR   <foo xmlns:minidom="http://pyxml.sf.net/minidom">
    <minidom:myelem/>
    </foo>s   http://pyxml.sf.net/minidoms   myelemi   (   s   ds   parseStrings   doms   getElementsByTagNameNSs   elems   confirms   lens   unlink(   s   doms   elems   d(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testGetElementsByTagNameNS>s
   	c      s
   GGd  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys+   testGetEmptyNodeListFromElementsByTagNameNSGs    c     sl   IJt    } K| i | i d   }  Lt |   } Mt |   } Nt	 | | j  O| i
   d  S(   Ns   abc(   s   Documents   doms   appendChilds   createElements   els   reprs   string1s   strs   string2s   confirms   unlink(   s   els   doms   string2s   string1(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testElementReprAndStrIs   c     sl   RSt    } T| i | i d   }  Ut |   } Vt |   } Wt	 | | j  X| i
   d  S(   Nu   abc(   s   Documents   doms   appendChilds   createElements   els   reprs   string1s   strs   string2s   confirms   unlink(   s   els   doms   string2s   string1(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   _testElementReprAndStrUnicodeRs   c     s   [\t    } ]| i | i d d   }  _t |   } `t |   } at	 | | j  bt	 | i
 d  d j  c| i   dt	 t t i  d j  d  S(   Nu   http://www.slashdot.orgu	   slash:abcs	   slash:abcii    (   s   Documents   doms   appendChilds   createElementNSs   els   reprs   string1s   strs   string2s   confirms   finds   unlinks   lens   Nodes   allnodes(   s   els   doms   string2s   string1(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   _testElementReprAndStrUnicodeNS[s   c     s   fgt    } h| i | i d   } i| i d d  }  jt t |   t	 |   j  k| i
   lt t t i  d j  d  S(   Nu   abcs   abcs   defi    (   s   Documents   doms   appendChilds   createElements   els   setAttributes   nodes   confirms   strs   reprs   unlinks   lens   Nodes   allnodes(   s   nodes   els   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttributeReprfs   c      s
   nnd  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testTextNodeReprns    c     sj   pqd }  rt |   } s| i   } t| i   ut |  | j  vt t t i	  d j  d  S(   Ns!   <?xml version="1.0" ?>
<a b="c"/>i    (
   s   strs   parseStrings   doms   toxmls   domstrs   unlinks   confirms   lens   Nodes   allnodes(   s   strs   doms   domstr(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testWriteXMLps   	c      s
   xxd  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testProcessingInstructionxs    c      s
   zzd  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testProcessingInstructionReprzs    c      s
   ||d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testTextRepr|s    c      s
   ~~d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testWriteText~s    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testDocumentElements    c     s   t  d  }  |  i d  } y |  i |  Wn t j
 o d GHn
 Xd GH| i   |  i   d  S(   Ns   <doc/>s   extras=   Caught expected exception when adding extra document element.sF   Failed to catch expected exception when adding extra document element.(   s   parseStrings   docs   createElements   elems   appendChilds   HierarchyRequestErrs   unlink(   s   docs   elem(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testTooManyDocumentElementss   c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCreateElementNSs    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCreateAttributeNSs    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys	   testParses    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseStrings    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testComments    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListItems    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListItemss    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListItemNSs    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListKeyss    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListKeysNSs    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListValuess    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrListLengths    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrList__getitem__s    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testAttrList__setitem__s    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testSetAttrValueandNodeValues    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseElements    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseAttributess    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseElementNamespacess    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseAttributeNamespacess    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParseProcessingInstructionss    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testChildNodess    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testFirstChilds    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testHasChildNodess    c     s   t  d  \ } }  t t |  i  d j o3 |  i i d j o  |  i t j o |  i	   d j d  | i
   d  S(   Ni    s   <doc attr="value"/>s   testCloneElementShallow(   s   _setupCloneElements   doms   clones   confirms   lens
   childNodess   lengths
   parentNodes   Nones   toxmls   unlink(   s   clones   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCloneElementShallows   N
c     s   t  d  \ } }  t t |  i  d j o3 |  i i d j o  |  i t j o |  i	   d j d  | i
   d  S(   Ni   s   <doc attr="value"><foo/></doc>s   testCloneElementDeep(   s   _setupCloneElements   doms   clones   confirms   lens
   childNodess   lengths
   parentNodes   Nones   toxmls   unlink(   s   clones   dom(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCloneElementDeeps   N
c    s   t  d  } | i } | i |   } t | | d |  o d p d  d | _ | _	 | i
 d d  | i
 d d	  | | f Sd  S(
   Ns   <doc attr='value'><foo/></doc>s   testCloneElements   Deeps   Shallows   MODIFIEDs   attrs	   NEW VALUEs   addeds   VALUE(   s   parseStrings   doms   documentElements   roots	   cloneNodes   deeps   clones!   _testCloneElementCopiesAttributess   tagNames   nodeNames   setAttribute(   s   deeps   doms   clones   root(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   _setupCloneElements   %c 
   s5  |  i } | i } | i   } | i   } | i   | i   t	 | | j d  x t
 t |   D] } | i |  } | i |  }	 t	 | |	 j	 oI | i |	 i j o6 | i |	 i j o# | i |	 i j o | i |	 i j d  t	 |	 i | j d  q Wd  S(   Ns(   clone of element has same attribute keyss3   clone of attribute node has proper attribute valuess'   clone of attribute node correctly owned(   s   e1s
   attributess   attrs1s   e2s   attrs2s   keyss   keys1s   keys2s   sorts   confirms   ranges   lens   is   items   a1s   a2s   values	   nodeValues   namespaceURIs	   localNames   ownerElement(
   s   e1s   e2s   tests   a1s   attrs2s   attrs1s   is   keys1s   keys2s   a2(    (    s'   /usr/lib/python2.2/test/test_minidom.pys!   _testCloneElementCopiesAttributess    	[
c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCloneDocumentShallows    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCloneDocumentDeeps    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCloneAttributeShallows    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testCloneAttributeDeeps    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testClonePIShallows    c      s
   d  S(   N(    (    (    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testClonePIDeeps    c     s  t  d  }  |  i } | i |  i d    | i |  i d   t t | i  d j o | i i	 d j d  |  i
   t t | i  d j o6 | i i	 d j o# | i | i j o | i i d j d  	|  i   t  d  }  |  i } | i |  i d	   |  i
   t t | i  d
 j o | i i	 d
 j d  |  i   d  S(   Ns   <doc/>s   firsts   secondi   s   testNormalize -- preparationi   s   firstseconds   testNormalize -- results    i    s*   testNormalize -- single empty node removed(   s   parseStrings   docs   documentElements   roots   appendChilds   createTextNodes   confirms   lens
   childNodess   lengths	   normalizes
   firstChilds	   lastChilds   datas   unlink(   s   docs   root(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testNormalizes"   +
Q
+
c     s   t  d  } | i } | i \ } }  } t | i	 |  j oM | i
 t j o= |  i	 | j o- |  i
 | j o | i	 t j o | i
 |  j d   | i   d  S(   Ns   <doc><?pi?>text?<elm/></doc>s   testSiblings(   s   parseStrings   docs   documentElements   roots
   childNodess   pis   texts   elms   confirms   nextSiblings   previousSiblings   Nones   unlink(   s   texts   elms   docs   pis   root(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testSiblingss   b
c     s   "#t  d  } $| i } %| i d }  &|  i \ } } '| i d } )t	 | i
 | j o= |  i
 | j o- | i
 |  j o | i
 |  j o | i
 | j -d  /| i   d  S(   Ns3   <doc><elm1><elm2/><elm2><elm3/></elm2></elm1></doc>i    s   testParents(   s   parseStrings   docs   documentElements   roots
   childNodess   elm1s   elm2as   elm2bs   elm3s   confirms
   parentNodes   unlink(   s   elm1s   docs   elm3s   roots   elm2bs   elm2a(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testParents"s   R
c     s   12t  d  }  3|  i } 4| d } 5t | d | i d  j ox | i d  t j ob | i i d  | i d j oB | i i d  | i d j o" | i i d  i i d  t j :d  ;|  i   d  S(   Ns   <doc><e/><e/></doc>i    i   s   test NodeList.item()(	   s   parseStrings   docs
   childNodess   childrens   docelems   confirms   items   Nones   unlink(   s   docs   docelems   children(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testNodeListItem1s   
c     s  =>d k  l }  @|  i   } A| i   B| i d h   C| i d  D| i d h   E| i d  F| i d  G| i d  H| i d  I| i   K| i	 } L| i } M| i \ } } } N| i d } Pt | i t j om | i | j o] | i | j oM | i | j o= | i | j o- | i t j o | i t j o | i t j Wd  Yt | i | j o= | i | j o- | i | j o | i | j o | i | j ]d  _| i   d  S(   N(   s   pulldoms   docs   texts   subelmi    s   testSAX2DOM - siblingss   testSAX2DOM - parents(   s   xml.doms   pulldoms   SAX2DOMs   sax2doms   startDocuments   startElements
   characterss
   endElements   endDocuments   documents   docs   documentElements   roots
   childNodess   text1s   elm1s   text2s   text3s   confirms   previousSiblings   Nones   nextSiblings
   parentNodes   unlink(   s   pulldoms   sax2doms   text1s   docs   elm1s   roots   text2s   text3(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   testSAX2DOM=s(   
R
s   Test Succeededs"   assertion: len(Node.allnodes) == 0s   Garbage left over:i
   s   Test Failed: s*   


**** Check for failures in these tests:s     s   All tests succeeded(z   s   xml.dom.minidoms   parses   Nodes   Documents   parseStrings   xml.doms   HierarchyRequestErrs   xml.parsers.expats   xmls   oss   syss	   tracebacks   test_supports   verboses   __name__s   argvs   bases   __file__s   paths   joins   dirnames   extseps   tstfiles   confirms   _debugs   testParseFromFiles   testGetElementsByTagNames   testInsertBefores   _create_fragment_test_nodess   testInsertBeforeFragments   testAppendChilds   testAppendChildFragments   testReplaceChildFragments   testLegalChildrens   testNamedNodeMapSetItems   testNonZeros
   testUnlinks   testElements   testAAAs   testAABs   testAddAttrs   testDeleteAttrs   testRemoveAttrs   testRemoveAttrNSs   testRemoveAttributeNodes   testChangeAttrs   testGetAttrLists   testGetAttrValuess   testGetAttrLengths   testGetAttributes   testGetAttributeNSs   testGetAttributeNodes   testGetElementsByTagNameNSs+   testGetEmptyNodeListFromElementsByTagNameNSs   testElementReprAndStrs   _testElementReprAndStrUnicodes   _testElementReprAndStrUnicodeNSs   testAttributeReprs   testTextNodeReprs   testWriteXMLs   testProcessingInstructions   testProcessingInstructionReprs   testTextReprs   testWriteTexts   testDocumentElements   testTooManyDocumentElementss   testCreateElementNSs   testCreateAttributeNSs	   testParses   testParseStrings   testComments   testAttrListItems   testAttrListItemss   testAttrListItemNSs   testAttrListKeyss   testAttrListKeysNSs   testAttrListValuess   testAttrListLengths   testAttrList__getitem__s   testAttrList__setitem__s   testSetAttrValueandNodeValues   testParseElements   testParseAttributess   testParseElementNamespacess   testParseAttributeNamespacess   testParseProcessingInstructionss   testChildNodess   testFirstChilds   testHasChildNodess   testCloneElementShallows   testCloneElementDeeps   _setupCloneElements!   _testCloneElementCopiesAttributess   testCloneDocumentShallows   testCloneDocumentDeeps   testCloneAttributeShallows   testCloneAttributeDeeps   testClonePIShallows   testClonePIDeeps   testNormalizes   testSiblingss   testParentss   testNodeListItems   testSAX2DOMs   globalss   keyss   namess   sorts   faileds   names
   startswiths   funcs   lens   allnodess   itemss   appends   stdouts   flushs   print_exceptions   exc_infos   Nones   debug(`   s
   testUnlinks   testParentss   verboses   testGetAttrLists   testNonZeros   testParseElementNamespacess   testAttrListItemss   testGetAttributeNSs   confirms   testAppendChildFragments   namess   Documents   testProcessingInstructionReprs   xmls   testRemoveAttrs   testRemoveAttributeNodes   testAAAs   _create_fragment_test_nodess   testParseStrings   testDocumentElements   testElements   tstfiles   testNormalizes   testSiblingss   testSetAttrValueandNodeValues   testWriteTexts   testGetAttrValuess   testClonePIDeeps   testWriteXMLs   names   testGetAttrLengths   testHasChildNodess   testProcessingInstructions   testGetAttributeNodes   testCloneAttributeShallows   testChildNodess   funcs   testTextReprs   testAttributeReprs   testFirstChilds   testAABs   testCloneElementDeeps   faileds   testAttrListItems   testAddAttrs   testAttrList__getitem__s   testLegalChildrens   testComments   testAttrListKeyss   testTooManyDocumentElementss   testAttrList__setitem__s   testCreateElementNSs   testReplaceChildFragments	   testParses   testAppendChilds   testCreateAttributeNSs   parses   testChangeAttrs   testCloneElementShallows   testDeleteAttrs   testRemoveAttrNSs   _testElementReprAndStrUnicodes   testCloneDocumentShallows   parseStrings   _testElementReprAndStrUnicodeNSs   testElementReprAndStrs   testNamedNodeMapSetItems   testAttrListItemNSs   testParseElements   testGetElementsByTagNames   HierarchyRequestErrs   testParseProcessingInstructionss!   _testCloneElementCopiesAttributess   Nodes   testParseAttributeNamespacess   testInsertBeforeFragments   testSAX2DOMs   testGetElementsByTagNameNSs   syss   bases   testTextNodeReprs   testAttrListValuess   testParseAttributess   testAttrListKeysNSs	   tracebacks   _setupCloneElements   testInsertBefores   testCloneDocumentDeeps   testGetAttributes   testClonePIShallows   testAttrListLengths   testCloneAttributeDeeps   testParseFromFiles   oss   testNodeListItems+   testGetEmptyNodeListFromElementsByTagNameNS(    (    s'   /usr/lib/python2.2/test/test_minidom.pys   ? s   %	/*	#					&	
 	




 	