mς %U²Ic@s…dklZlZdfd„ƒYZdefd„ƒYZdefd„ƒYZd„ZedƒZedƒZedƒZ edejd ƒed ejd ƒede jd ƒed e jd ƒydejed dƒWne j onXydejed dƒWne j onXeddjdƒeddjdƒeddjdƒeddjdƒyd1djed dƒWne j onXeoede dƒjdƒede dƒjdƒede dƒjdƒee dƒdjdƒee dƒe dƒjdƒede dƒjdƒee dƒdjdƒee dƒe dƒjd ƒy!d1e dƒjed d!ƒWne j onXee dƒe dƒjd"ƒee dƒe dƒjd#ƒee dƒdjd$ƒee dƒdjd%ƒne d&ƒZx+eD]#Zeeejd'eefƒqCWed(ejd)efƒeeejd*eefƒeeƒZx+eD]#Zeeejd'eefƒq΄Wed(ejd)efƒeeejd'eefƒd+fd,„ƒYZeeƒeijd-ƒd.fd/„ƒYZyeeƒejd0ƒWne j onXd1S(2(s TestFaileds have_unicodetbase_setcBstZd„ZRS(NcCs ||_dS(N(teltself(RR((t//data/zmath/lib/python2.4/test/test_contains.pyt__init__s(t__name__t __module__R(((RRstsetcBstZd„ZRS(NcCs |i|jS(N(RR(RR((Rt __contains__ s(RRR(((RRstseqcBstZd„ZRS(NcCs|ig|S(N(RRtn(RR ((Rt __getitem__s(RRR (((RR scGs*|ptditt|ƒƒ‚ndS(Nt (tokt TestFailedtjointmaptstrtargs(R R((Rtchecksis1 not in set(1)is 0 in set(1)s1 not in seq(1)s 0 in seq(1)sin base_set did not raise errors#not in base_set did not raise errortctabcs'c' not in 'abc'tds 'd' in 'abc'ts '' not in ''s'' not in 'abc's!None in 'abc' did not raise errors'c' not in u'abc's 'd' in u'abc's '' not in u''s u'' not in ''su'' not in u''s'' not in u'abc'su'' not in 'abc'su'' not in u'abc's"None in u'abc' did not raise errorsu'c' not in u'abc'su'd' in u'abc'su'c' not in 'abc's u'd' in 'abc'i s %r not in %ris 16 not in %rs %s not in %rtDeviant1cBs#tZdZedƒZd„ZRS(sšBehaves strangely when compared This class is designed to make sure that the contains code works when the list is modified during the check. icCsE|djo4|iidƒ|iidƒ|iidƒndS(Ni i ii(totherRtaListtremove(RR((Rt__cmp__ns  (RRt__doc__trangeRR(((RRes  sDeviant1 failedtDeviant2cBstZdZd„ZRS(sBehaves strangely when compared This class raises an exception during comparison. That in turn causes the comparison to fail with a TypeError. cCs|djo td‚ndS(Nitgotcha(Rt RuntimeError(RR((RR~s (RRRR(((RRws toopsN(ttest.test_supportRt have_unicodeRRR RtatbRt TypeErrortNonetunicodeRtittupleRRR( R%RRR$R R*RRR&RRR((Rt?s†        ! !