;ò ~ÈDc@sˆdkZdkZdkZdkZdkZdklZdklZdkZdeifd„ƒYZ e djoei ƒndS(N(s ConfigParser(sStringIOsMainTestcBs>tZd„Zd„Zd„Zd„Zd„Zd„ZRS(NcCs/tƒ}ti|ƒ}|iddgƒdS(Ns Planet Nameshttp://example.com(s ConfigParsersconfigpsplanetsPlanets my_planetsrun(sselfsconfigps my_planet((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pys test_minimal s cCsEtƒ}|itdƒƒti|ƒ}|iddgtƒdS(Ns&[http://www.example.com/] name = Mary s Planet Nameshttp://example.com( s ConfigParsersconfigpsreadfpsStringIOsplanetsPlanets my_planetsrunsTrue(sselfsconfigps my_planet((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pys test_onefeeds c CsItƒ}|itdƒƒti|ƒ} | iddgtƒt i i t i i t i i titiƒƒdƒ}t i|iƒddg}|i||ƒgi}|D]#}|t i i ||ƒdƒq²~} | i| ddd d d ƒxH|D]@}t i i |i|ƒ}t|ƒi ƒ}|i"|d ƒqWdS( Ns&[http://www.example.com/] name = Mary s Planet Nameshttp://example.comsdatassimplessimple2s.tmplshttp://example.com/shttp://example.com/feed/sMarysmary@example.comsMary (#s ConfigParsersconfigpsreadfpsStringIOsplanetsPlanets my_planetsrunsTruesosspathsjoinsdirnamesabspathssyssmoduless__name__s__file__sbasedirsmkdirsselfs output_dirs t_file_namess_remove_cached_templatessappends_[1]st_filest_filessgenerate_all_filess file_namesnamesfilesreadscontents assertEqual( sselfst_filesnamesbasedirs t_file_namess file_names_[1]scontentsconfigps my_planetst_files((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pystest_generatealls  7 : cCsqxj|D]b}tii||dƒ}yti|ƒWqtj o#}|i t i jo‚qiqXqWdS(sB Remove the .tmplc files and force them to be rebuilt. This is required mainly so that the tests don't fail in mysterious ways in directories that have been moved, eg 'branches/my-branch' to 'branches/mysterious-branch' -- the .tmplc files seem to remember their full path s.tmplcN( stemplate_filessfilesosspathsjoinsbasedirsremovesOSErrorseserrnosENOENT(sselfsbasedirstemplate_filessesfilespath((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pys_remove_cached_templates*scCs tt|ƒiƒd|_dS(Nsoutput(ssupersMainTestsselfssetUps output_dir(sself((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pyssetUp=scCs@tt|ƒiƒti|idtƒtiddtƒdS(Ns ignore_errorsscache(ssupersMainTestsselfstearDownsshutilsrmtrees output_dirsTrue(sself((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pystearDownAs(s__name__s __module__s test_minimals test_onefeedstest_generatealls_remove_cached_templatesssetUpstearDown(((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pysMainTests     s__main__( sosssyssshutilserrnosunittests ConfigParsersStringIOsplanetsTestCasesMainTests__name__smain( splanetsStringIOserrnosunittestsMainTestssyssshutilsoss ConfigParser((sE/home/.folder/mrben/misterben.org.uk/planet/planet/tests/test_main.pys?s -   ?