mς +αΈEc@s’dZdkZdklZdfd„ƒYZdefd„ƒYZdefd„ƒYZd ei fd „ƒYZ d „Z e d joei d dƒndS(sLustr unit tests. $Id: testustr.py 40218 2005-11-18 14:39:19Z andreasjung $ N(sustrt force_strcBstZd„Zd„ZRS(NcCs ||_dS(N(tstself(RR((t>/data/zmath/zope/lib/python/DocumentTemplate/tests/testustr.pyt__init__scCs|iS(N(RR(R((Rt__str__s(t__name__t __module__RR(((RRs tFoocBstZRS(N(RR(((RRstBarcBstZRS(N(RR(((RR $st UnicodeTestscBs,tZd„Zd„Zd„Zd„ZRS(NcCs tdƒ}|djp t| ‚ttdƒƒ}|djp t| ‚ttdƒƒ}|tdƒjp t| ‚tttdƒƒƒ}|tdƒjp t| ‚tdƒ}|djp t| ‚tdddgƒ}|djp t| ‚dS( NthelloiΘit22iiis [1, 2, 3](tustrtatAssertionErrorRtchr(RR((Rt testPlain+s  cCsΈtdƒ}|djp t| ‚ttdƒƒ}|djp t| ‚ttdƒƒ}|tdƒjp t| ‚tttdƒƒƒ}|tdƒjp t| ‚dS(NuhelloR iΘ(R RRRtunichr(RR((Rt testUnicode9s cCs:tttdƒƒƒ}|tdƒjp t| ‚dS(NiΘ(R t ValueErrorRRR(RR((RttestExceptionsCscCsTttdƒƒ}|it|ƒtƒttdƒƒ}|it|ƒtƒdS(Ntfootbar(R RRRtfailUnlessEqualttypeR (RR((RttestCustomStringsGs(RRRRRR(((RR )s  cCs&tiƒ}|ititƒƒ|S(N(tunittestt TestSuitetsuitetaddTestt makeSuiteR (R((Rt test_suiteNs t__main__t defaultTestR (t__doc__RtDocumentTemplate.ustrR RtstrRtunicodeR tTestCaseR R Rtmain(R R R RR RR((Rt?s  %