Ñò 4Mc@s(ddkZddkZddkZddkZddkZddkZddkZddkZddkl Z ddk l Z ddk l Z dZdeifd„ƒYZxreiedƒD]]Zeiieiieƒƒd Zed „ZeiedeƒZeed eeƒqÃWdS( iÿÿÿÿN(t feedparser(t reconstitute(tscrubstests/data/reconstitute/%s.xmltReconstituteTestcBs/eZeidƒZeidƒZd„ZRS(s+Description:\s*(.*?)\s*Expect:\s*(.*)\s*-->s#^(\S+) == (u?'[^']*'|\([0-9, ]+\))$c CsiyHtt|ƒ}|iƒ}|ii|ƒiƒ\}}|iƒWntd|‚nXtiƒ}t i |ƒ}t t||ƒt ||i dƒi|ƒt i |iƒidƒƒ}d|jo|i|idƒn|ii|ƒp$|it||i dƒ|ƒnE|ii|ƒiƒ\}} |it| ƒt||i dƒƒdS(Nscan't parse %sisutf-8tillegalsxml is well formed(topent testfilestreadtdesc_retsearchtgroupstcloset RuntimeErrortStringIORtparseRRtentriestwritexmltgetvaluetencodet assertFalsetbozot simple_retmatcht assertTruetevalt assertEqual( tselftnamettestcasetdatat descriptiontexpecttworktresultstlhstrhs((sD/home/sa3ruby/intertwingly.net/code/venus/tests/test_reconstitute.pyRs$   $(t__name__t __module__tretcompileRRR(((sD/home/sa3ruby/intertwingly.net/code/venus/tests/test_reconstitute.pyR st*icCs |i|ƒS((R(RR((sD/home/sa3ruby/intertwingly.net/code/venus/tests/test_reconstitute.pyt+sttest_(tunittesttostsystglobtnewR&R ttimetplanetRtplanet.reconstituteRt planet.scrubRRtTestCaseRRtpathtsplitexttbasenametroottfunctinstancemethodtNonetmethodtsetattr(((sD/home/sa3ruby/intertwingly.net/code/venus/tests/test_reconstitute.pyts`"