config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/string_tests.pyc

³ò
h”Rc	@sþdZddkZddkZddkZddkZddklZddklZdfd„ƒYZdefd„ƒYZ	d	efd
„ƒYZ
deifd„ƒYZd
fd„ƒYZ
dfd„ƒYZdfd„ƒYZdfd„ƒYZdS(sQ
Common tests shared by test_str, test_unicode, test_userstring and test_string.
iÿÿÿÿN(ttest_support(tUserListtSequencecBs&eZdd„Zd„Zd„ZRS(twxyzcCs
||_dS(N(tseq(tselfR((s-/usr/local/lib/python2.5/test/string_tests.pyt__init__
scCs
t|iƒS(N(tlenR(R((s-/usr/local/lib/python2.5/test/string_tests.pyt__len__scCs|i|S(N(R(Rti((s-/usr/local/lib/python2.5/test/string_tests.pyt__getitem__s(t__name__t
__module__RRR
(((s-/usr/local/lib/python2.5/test/string_tests.pyR	s	tBadSeq1cBseZd„ZRS(cCsdddg|_dS(Nithellol{(R(R((s-/usr/local/lib/python2.5/test/string_tests.pyRs(RRR(((s-/usr/local/lib/python2.5/test/string_tests.pyR
stBadSeq2cBseZd„Zd„ZRS(cCsdddg|_dS(Ntatbtc(R(R((s-/usr/local/lib/python2.5/test/string_tests.pyRscCsdS(Ni((R((s-/usr/local/lib/python2.5/test/string_tests.pyRs(RRRR(((s-/usr/local/lib/python2.5/test/string_tests.pyRs	t
CommonTestcBsæeZdZd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd„Zd	„Z
d
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCst|tƒo|ii|ƒSnàt|tƒo,g}|D]}||i|ƒq?~Sn¤t|tƒo2tg}|D]}||i|ƒq~~ƒSnbt|tƒoMtg}|iƒD]+\}}||i|ƒ|i|ƒfqÆ~ƒSn|SdS(N(	t
isinstancetstrt	__class__t	type2testtlisttfixtypettupletdictt	iteritems(Rtobjt_[1]txt_[2]t_[3]tkeytvalue((s-/usr/local/lib/python2.5/test/string_tests.pyR!s,2CcGs·|i|ƒ}|i|ƒ}|i|ƒ}t||ƒ|Œ}|i||ƒ||joTd|iifd„ƒY}||ƒ}t||ƒ|Œ}|i||j	ƒndS(NtsubtypecBseZRS((RR(((s-/usr/local/lib/python2.5/test/string_tests.pyR$=s(RtgetattrtassertEqualRRtassert_(Rtresulttobjectt
methodnametargst
realresultR$((s-/usr/local/lib/python2.5/test/string_tests.pyt
checkequal1s
cGs>|i|ƒ}|i|ƒ}|i|t||ƒ|ŒdS(N(RtassertRaisesR%(RtexcR)R*R+((s-/usr/local/lib/python2.5/test/string_tests.pytcheckraisesDscGs5|i|ƒ}|i|ƒ}t||ƒ|ŒdS(N(RR%(RR)R*R+((s-/usr/local/lib/python2.5/test/string_tests.pyt	checkcallNscCsc|idƒ}|idƒ}x"|D]}||7}t|ƒq%W|it|ƒt|ƒƒdS(NtDNSSECt(RthashR&(RRRR((s-/usr/local/lib/python2.5/test/string_tests.pyt	test_hashSs
cCsy|idddƒ|idddƒ|idddƒ|idddƒ|idddƒ|itddd	ƒdS(
Ns hello t
capitalizesHello shello tAaaataaaatAaAaRi*(R-R0t	TypeError(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_capitalize\sc
CsX|iddddƒ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|idddddƒ|iddddd	ƒ|iddddd
ƒ|idddddƒ|iddddddƒ|idddddd	ƒ|idddddd
ƒ|iddddddƒ|idddddƒ|idddddƒ|iddddd	ƒ|iddddd
ƒ|id
ddddƒ|iddddƒ|iddddddƒ|iddddtidƒ|iddddƒ|iddddddƒ|iddddtidƒ|itddƒ|itdddƒdddg}d}t|ƒ}tƒ}xqt||ƒD]_}g}x:t|ƒD],}t||ƒ\}}|i	||ƒq
W|i
di|ƒƒqñWt|ƒ}xñ|D]é}|i
|ƒ}t|ƒ}	xÅ|D]½}|i|ƒ}
|o5t|	t|i|dƒƒt|ƒƒ\}}nt|ƒdd}}|p
|
|joA|i|dd||fƒ|i|
|d|
||fƒqqWqgWdS(NitaaatcountRiRiii
iÿÿÿÿiöÿÿÿR3itxxRi*is%s != 0 for %ss%s != %s for %s(R-tsystmaxintR0R:RtsettxrangetdivmodtappendtaddtjoinRRR=treplaceR&(
RtcharsettdigitstbasetteststringsR	tentrytjtmtntr1tr2trem((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_countesl	
5c
Csº|iddddƒ|idddddƒ|iddddd	ƒ|idddd
dƒ|idddd
dƒ|idddd
d	ƒ|itddƒ|itddd
ƒ|idd
dd
ƒ|idd
dd
ddƒ|idd
dd
tidƒ|idd
ddƒ|idd
ddddƒ|idd
ddtidƒd
dddg}d}t|ƒ}tƒ}xqt||ƒD]_}g}x:t|ƒD],}t||ƒ\}}|i	||ƒqµW|i
d
i|ƒƒqœWt|ƒ}x¨|D] }|i
|ƒ}xˆ|D]€}|i|ƒ}	|	dj}
||j}|
|jo|i|
|ƒn|	djo%|i||	|	t|ƒ!|ƒq.q.WqWdS(Nitabcdefghiabctfindtabci	iiÿÿÿÿtdefiR3iRi*R>RRRi(R-R0R:R?R@RRARBRCRDRERFRRRUR&(RRHRIRJRKR	RLRMRNtlocRPRQ((s-/usr/local/lib/python2.5/test/string_tests.pyt	test_find¡sN	


cCsÐ|iddddƒ|iddddƒ|iddddƒ|id	ddd
ƒ|idddddƒ|idddddƒ|id	ddddƒ|itd
dƒ|itd
ddƒdS(Ni	RTtrfindRViR3itabcdiÿÿÿÿtabcziiRi*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_rfindÎscCsé|iddddƒ|iddddƒ|iddddƒ|iddddd	ƒ|itddd
ƒ|itdddd	ƒ|itddd
dƒ|itddd
dƒ|itddƒ|itdddƒdS(NiRTtindexR3iRWRVi	ithibtabcdefghiabt	abcdefghitghiiiÿÿÿÿRi*(R-R0t
ValueErrorR:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_indexÛscCs|iddddƒ|iddddƒ|iddddƒ|id	dddd	d
ƒ|itdddƒ|itdddd
ƒ|itdddd	d
ƒ|itdddd	dƒ|itdddd	d
ƒ|itddƒ|itdddƒdS(NiRTtrindexR3iRWi	RViiÿÿÿÿR_t	defghiabciRaRbiRi*(R-R0RcR:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_rindexéscCs@|idddƒ|idddƒ|itdddƒdS(NRtHeLLotloweri*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_lowerøscCs@|idddƒ|idddƒ|itdddƒdS(NtHELLORhtupperRi*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_upperýscCs
|idddƒ|iddddƒ|iddddƒ|iddddƒ|idddƒ|iddddƒ|id	d	ddƒ|id
dddƒ|itd
dddƒtidjo3tidƒdjo|itddtiƒndS(Nsabc
ab      def
g       hisabc
ab	def
g	hit
expandtabsisabc
ab  def
g   hiisabc
ab  def
g   hisabc
ab	def
g	hisabc
ab
def
g
his  a
 bs 	a
	biRi*i tPs	a
	bI(R-R0R:R?R@tstructtcalcsizet
OverflowError(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_expandtabss&	c
CsÐ|idddddgddƒ|iddd	d
gddƒ|iddgd
dddƒ|idddgd
dddƒ|iddd	d
gd
dddƒ|iddd	d
gd
dddƒ|iddd	d
gd
ddtidƒ|id
gd
dddƒ|id
gddddƒ|idddgddddƒ|igddƒ|idgddƒ|iddgddƒ|iddgddddƒ|iddgddddƒ|idddgddddƒ|iddgddƒdd }|idgd |dƒ|idg|dg|dddƒ|idgd!d"g|ddd!ƒ|iddd	d
gd#dd$ƒ|id#gd#dd$dƒ|idd%gd#dd$dƒ|iddd&gd#dd$dƒ|iddd	d
gd#dd$dƒ|iddd	d
gd#dd$dƒ|iddd	d
gd#dd$tidƒ|id#gd#dd$dƒ|idd'd(gd)dd$dƒ|id*d'gd+dd$ƒ|id'd,gd-dd$ƒ|id'd.d'gd/dd$ƒ|idd'd0gd1dd2dƒ|idgd d3d d4 dd$ƒ|idgd5d6gd3d d4 dd$d5ƒ|iddd	d
gd7dd8ƒ|idd9gd7dd8dƒ|iddd:gd7dd8dƒ|iddd	d
gd7dd8dƒ|iddd	d
gd7dd8dƒ|iddd	d
gd7dd8tid;ƒ|id7gd7dd8dƒ|idd'd<gd=dd8dƒ|id*d'gd>dd?ƒ|id'd@gdAdd?ƒ|id'dBd'gdCdd?ƒ|iddDgdEddFƒ|id'd'gdGddGƒ|idGgdGddGdƒ|idHdHgdIddJƒ|idKgdKddLƒ|id'gd'ddGƒ|idMgdMddGƒ|idNdOgdPddQƒ|idNdRd'gdSddQƒ|idgd dTd dU ddVƒ|idgd dTd dU ddVd!ƒ|idgdWdXgdTd dU ddVdWƒ|idYdZd[gd
dd\dƒ|itd]dd^d^d^ƒ|itd]dd'ƒ|itd]dd'dƒdS(_Ntthististthetsplittfunctionsthis is the split functionRRRtdsa b c d sb c dsa b c disc diiiis	  a b c dsc  ds
a  b  c  ds	         s  a    s  a    b   sb   sb   c   s  a    b   c   sc   s
	a 	
 b  s a iisa sa|b|c|dt|sb|c|dsc|dR3sb||c||ds
a||b||c||dsendcase s	endcase |s
 startcases| startcasetbothcases
|bothcase|tbcdtabcdtsa|iÿÿÿÿis	a|a|a|a|as
a//b//c//ds//sb//c//dsc//di
sb////c////dsa////b////c////dsendcase testttests
 begincasestest begincases
 bothcase stest bothcase testtbctabbbctbbR<tabtabbaabtbaR8taabtaatAtbobbt
AbbobbbobbtbbobbtBtAbbobbBbbobbtaBLAHiüÿÿÿtBLAHitaBLAHauaubuc du Ri*(R-tNoneR?R@R0R:Rc(RR<((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_splitsŒ
"%%""
''""%%""%""%%"
%("
"c
Csº|idddddgddƒ|iddd	d
gddƒ|idd
gd
dddƒ|idd	d
gd
dddƒ|iddd	d
gd
dddƒ|iddd	d
gd
dddƒ|iddd	d
gd
ddtidƒ|id
gd
dddƒ|id
gddddƒ|idd	d
gddddƒ|igddƒ|idgddƒ|iddgddƒ|iddgddddƒ|idd	gddddƒ|iddd	gddddƒ|iddgddddƒd d}|idgd|dƒ|i|d! gdg|dddƒ|id"gdgd#|ddd#ƒ|iddd	d
gd$dd%ƒ|id&d
gd$dd%dƒ|id'd	d
gd$dd%dƒ|iddd	d
gd$dd%dƒ|iddd	d
gd$dd%dƒ|iddd	d
gd$dd%tid(ƒ|id$gd$dd%dƒ|id)d*d
gd+dd%dƒ|id*d,gd-dd%ƒ|id.d*gd/dd%ƒ|id*d0d*gd1dd%ƒ|id2d	d
gd3dd4dƒ|idgdd5dd6 dd%ƒ|id7gdgd8d5dd6 dd%d8ƒ|iddd	d
gd9dd:ƒ|id;d
gd9dd:dƒ|id<d	d
gd9dd:dƒ|iddd	d
gd9dd:dƒ|iddd	d
gd9dd:dƒ|iddd	d
gd9dd:tid=ƒ|id9gd9dd:dƒ|id>d*d
gd?dd:dƒ|id*d,gd@ddAƒ|id.d*gdBddAƒ|id*dCd*gdDddAƒ|idEd	gdFddGƒ|id*d*gdHddHƒ|idHgdHddHdƒ|idEdEgdIddJƒ|idKgdKddLƒ|id*gd*ddHƒ|idMgdMddHƒ|idNdOgdPddQƒ|id*dRdOgdSddQƒ|idgddTdd! ddUƒ|idgddTdd! ddUdVƒ|idWgdgd#dTdd! ddUd#ƒ|idXdYdZgd
dd[dƒ|itd\dd]d]d]ƒ|itd\dd*ƒ|itd\dd*dƒdS(^NRtRuRvtrsplitRxsthis is the rsplit functionRRRRysa b c d sa b csa b c disa biiiiis	a b c d  sa  bs
a  b  c  ds	         s  a    s  a    b   s  as  a    bs  a    b   c   s
	a 	
 b  iXs a iüÿÿÿs a  aisa|b|c|dRzsa|b|csa|bidsa||b||cR3s
a||b||c||ds
 begincases| begincasesendcase s	endcase |R{s
|bothcase|tabR}R~sa|iÿÿÿÿs	a|a|a|a|ais
a//b//c//ds//sa//b//csa//bisa////b////csa////b////c////dstest begincaseRsendcase tests
 bothcase stest bothcase testRƒRR‚R<R„R…R8R†R‡tbbobRˆt
bbobbbobbAR‹RŒtbbobbBbbobbARŽRiRua bucudu Ri*(R-R‘R?R@R0R:Rc(RR<((s-/usr/local/lib/python2.5/test/string_tests.pyttest_rsplitisŽ
"%%"


''""%%""%""%%"
%("
"cCsù|idddƒ|idddƒ|idddƒ|idddƒ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|idddd	ƒ|id
ddd	ƒ|idddd	ƒ|idddd	ƒtio¤|itddƒddtd	dƒƒ|itd
dƒddtd	dƒƒ|itddƒddtd	dƒƒ|itddƒddtd	dƒƒn|itddd
d
ƒ|itddd
d
ƒ|itddd
d
ƒdS(NRs   hello   tstripshello   tlstrips   hellotrstriptxyzzyhelloxyzzytxyzt
helloxyzzyt
xyzzyhellotasciii*(R-R‘Rthave_unicodetunicodeR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_stripÃs0
cCsˆ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|id	dddd
ƒ|itddƒdS(Ns
abc       RVtljusti
sabc   iiis
abc*******t*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_ljustäscCsˆ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|id	dddd
ƒ|itddƒdS(Ns
       abcRVtrjusti
s   abciiis
*******abcR¥(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_rjustìscCsˆ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|id	dddd
ƒ|itddƒdS(Ns
   abc    RVtcenteri
s abc  iiis
***abc****R¥(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_centerôscCs-|idddƒ|itdddƒdS(NshEllO CoMPuTErSsHeLLo cOmpUteRstswapcaseRi*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_swapcaseüscCsŠ|i}|dddddƒ|dddddƒ|dddddƒ|dddddƒ|ddddddƒ|dddddtiƒ|dddddƒ|dddddƒ|dddddƒ|d	dddd
ƒ|ddddd
ƒ|ddddd
dƒ|ddddd
tiƒ|ddddd
dƒ|ddddd
dƒ|ddddd
dƒ|ddddd
dƒ|ddddd
dƒ|dddddƒ|dddddƒ|ddddddƒ|dddddtiƒ|ddddddƒ|ddddddƒ|ddddddƒ|ddddddƒ|ddddddƒ|dddddƒ|dddddƒ|ddddddƒ|dddddtiƒ|ddddddƒ|ddddddƒ|ddddddƒ|ddddddƒ|ddddddƒ|ddddddƒ|dddddƒ|dddddƒ|dddddƒ|d d dddƒ|d!d"dd#d"dddd$ƒ|dd%dd%dƒ|d&d'dd%dƒ|dd(dd%dƒ|dd)dd%dƒ|d*d+dd%dƒ|d,d,dd%dƒ|d-d-dd%dƒ|d.d/dd%dƒ|d0d1dd%dtiƒ|d0d1dd%ddƒ|d0d1dd%ddƒ|d0d1dd%ddƒ|d2d1dd%ddƒ|d1d1dd%ddƒ|d0d1dd%dƒ|d3d3dd%dƒ|d4d4dd%dƒ|d5d6dd5dƒ|d7d8dd5dƒ|d9d:dd5dƒ|d9d9dd5dƒ|d;d;dd<d<ƒ|d=d;dd<d>ƒ|d=d;dd<d>tiƒ|d=d;dd<d>dƒ|d=d;dd<d>dƒ|d=d;dd<d>dƒ|d?d;dd<d>dƒ|d;d;dd<d>dƒ|d;d;dd@dAƒ|dBd;ddCdDƒ|dEdFddCdDƒ|dGd;ddHdIƒ|dJdKddHdIƒ|d;d;ddLdIƒ|dMdNddOdPƒ|dMdNddOdPtiƒ|dMdNddOdPdƒ|dMdNddOdPdƒ|dMdNddOdPdƒ|dQdNddOdPdƒ|dRdNddOdPdƒ|dNdNddOdPdƒ|dSdTdd5dUƒ|dVdWdd5dUƒ|dTdTddXdXƒ|dYdZdd[d\ƒ|dYdZdd[d\dƒ|dYdZdd[d\tiƒ|dYdZdd[d\dƒ|d]dZdd[d\dƒ|dZdZdd[d\dƒ|d^d_ddLd`ƒ|dZdZddAd\ƒ|dadbddcddƒ|dadbddcddtiƒ|dadbddcdddƒ|dadbddcdddƒ|dadbddcdddƒ|dedbddcdddƒ|dfdbddcdddƒ|dbdbddcdddƒ|dTdgddTd5ƒ|dhdiddTd5ƒ|djdjdd5dkƒtd@ƒ}tdlƒ}|dmd3d||ƒ|dnd3d||ƒ|idodpddIdqdƒ|idrdpddIdƒ|idsdpddIdqdƒ|idtdpddIdqdƒ|idtdpddIdqdƒ|idpdpddIdqdƒ|idtdpddIdqƒ|idpdpddudqƒ|idpdpddudqdƒ|idvd3dddwƒ|idxd3dddwdƒ|id3d3dddwdƒ|idddddƒ|id3d3ddydzdƒ|id3d3dd{dzƒ|idd|dd|dƒ|idd}dd|dƒ|idud~dd|dƒ|itddƒ|itddd€ƒ|itddd€dƒ|itdddd€ƒdS(‚NR3RGRˆids*A*R¥s*1A*1s*1s*-#A*-#s*-#s*-A*-A*-tAAs*-iÿÿÿÿiis*-A*-Ais*-AAiitAAAt
AAAAAAAAAAtBCDtABACADAitBCDAtBCADAtBACADAtABCADtABCADAAs
*************s^A^t^ièiçRvtaterttheatertthethetthethethetheR8ttheatheatheatheatthattthaetshere and reshere and thereshere and re and reshere and there and thereshere and re and thereRVtabcdefgtbobtbbobobtbobXbobt
bbobobXbbobobtaaaaaaat
aaaaaaabobsWho goes there?tosWhO gOes there?tOsWhO goes there?Rtqswho goes there?tWtwswwho goes there?wwsWWho goes there?WWsWho goes there!t?t!sWho goes there!!sWho goes there??t.sTh** ** a t**suesThis is a tissueRus**sTh** ** a tissuesTh** is a tissuetcobobtbobobtcobt
cobobXcobocobt
bobobXbobobobtbottReyKKjaviKKt	ReykjaviktktKKt
ReyKKjaviksA----B----C----sA.B.C.s----sham, ham, eggs and hamsspam, spam, eggs and spamtspamthamsham, ham, eggs and spamsham, spam, eggs and spamtbobobobtbobobXbobobtbobobobXbobobobtBOBOBOBtbobbyRtbbctaacsone@two!three!sone!two!three!t@tonetwothreesone@two@three!sone@two@three@Rs-a-b-c-t-s-a-b-cRƒs--txyt123t123123t123x123Ri*th(R-R?R@tbufferR0R:(RtEQR…R‚((s-/usr/local/lib/python2.5/test/string_tests.pyttest_replaces(	%							
							cCs‹tidjptidƒdjodSndd
}|it|dd|ƒ|it|dd|ƒ|it|dd	||ƒdS(NiÿÿÿRoiRˆiiRGR3R­i(R?R@RpRqR0Rr(RtA2_16((s-/usr/local/lib/python2.5/test/string_tests.pyttest_replace_overflowµs&
cCs|iddddƒ|iddddƒ|iddddƒ|iddddƒ|iddddƒ|idddd	ƒ|id
d
ddƒ|id
d
ddƒ|idd
dd	ƒ|idd
ddƒ|iddddƒ|iddddƒ|itddƒdS(NRætzfilliit0123is+123s+0123is-123s-0123t000R3t34it0034(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_zfill¾sN(RRR‘RRR-R0R1R5R;RSRYR]RdRgRjRmRsR’R˜R£R¦R¨RªR¬RìRîRô(((s-/usr/local/lib/python2.5/test/string_tests.pyRs2			
						<	-	
						W	Z	!					´		tMixinStrUnicodeUserStringTestcBsÅeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsŸ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddd	ƒdS(
NR3tislowerRRˆs
RVtaBcsabc
i*(R-tFalsetTrueR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_islowerÓscCsŸ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itd	dd
ƒdS(NR3tisupperRRˆs
tABCtAbCsABC
RVi*(R-RøRùR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_isupperÝscCsë|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itd	dƒ|itd
dƒ|itddƒ|itddƒ|itd
ddƒdS(NR3tistitleRRˆs
sA Titlecased LinesA
Titlecased LinesA Titlecased, LinesNot a capitalized StringsNot	a Titlecase StringsNot--a Titlecase StringtNOTRVi*(R-RøRùR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_istitleçscCs²|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itd	dƒ|itd
ddƒdS(NR3tisspaceRt s	s
s
s 	
s 	
aRVi*(R-RøRùR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_isspaceõscCsŸ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddd	ƒdS(
NR3tisalphaRRˆs
RVtaBc123sabc
i*(R-RøRùR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_isalphascCs²|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itd	dƒ|itd
ddƒdS(NR3tisalnumRRˆs
t	123abc456ta1b3csaBc000 sabc
RVi*(R-RøRùR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_isalnum
scCsy|itddƒ|itddƒ|itddƒ|itddƒ|itddƒ|itdddƒdS(	NR3tisdigitRt0t
0123456789t0123456789aRVi*(R-RøRùR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_isdigitscCsŒ|idddƒ|idddƒ|idddƒ|idddƒ|idd	dƒ|id
ddƒ|itddd
ƒdS(Ns Hello s hello ttitlesHello shello sFormat This As Title StringsfOrMaT thIs aS titLe StringsFormat,This-As*Title;StringsfOrMaT,thIs-aS*titLe;StringtGetinttgetIntRi*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_titlescCsù|iddddgddƒ|iddddgddƒ|idddgddƒ|idddgd	dƒ|iddddgd
dƒ|idddddgddƒ|idd
dddgdddƒ|itddddƒdS(NRVRWR3Rbsabc
def

ghit
splitliness
abc
def

ghisabc
def
ghis
abc
def
ghi
sabc
def
ghi

s
abc
def
ghi

s
sabc
sdef
sghi
s
ii*(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_splitlines's"%cCsf|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itddddƒ|itdddd	ƒ|itdddd
ƒ|itdddd
ƒ|itddddƒ|itd
dddƒ|itd
ddddƒ|itd
ddddƒ|itdddddƒ|itdddddƒ|itdddddƒ|itdddddƒ|itddddƒ|itddddƒ|itddddƒ|itddddƒ|itdddddƒ|itddddƒ|itddƒ|itdddƒ|itddd"ƒ|itddd#ƒ|itddd$ƒ|itddd%ƒ|itd
dd&dƒ|itd
dd'dƒ|itddd(ddƒ|itddd)ddƒ|itddd*dd!ƒ|itddd+ƒdS(,NRt
startswiththeshello worldR3telloiRÆiitloit
helloworldtlowoiiiiÿÿÿÿiËÿÿÿiöÿÿÿiûÿÿÿiüÿÿÿiþÿÿÿiýÿÿÿi÷ÿÿÿi*thatllothelloxthellowotrldtheli(RR(sloR(Rshello((R R!R(R RR!(sloR(RR"(RR"(i*(R-RùRøR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_startswith2sJ

cCsñ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itdddd	d
ƒ|itdddd	dƒ|itddd
ddƒ|itddd
ddƒ|itddd
d	dƒ|itddd
ddƒ|itddd
d	dƒ|itdddddƒ|itdddddƒ|itddddƒ|itddddƒ|itdddddƒ|itdddddƒ|itddddƒ|itdddddƒ|itddddd
ƒ|itdddddƒ|itddd
ddƒ|itddd
ddƒ|itddd
ddƒ|itddd
d	dƒ|itddd
ddƒ|itddƒ|itdddƒ|itddd)ƒ|itddd*ƒ|itddd+ƒ|itddd,ƒ|itddd-d	ƒ|itddd.d	dƒ|itddd/ddƒ|itddd0ddƒ|itddd1ddƒ|itddd2ƒdS(3NRtendswithRRR3shello worldRtworlii	tworldiRiiiiiRƒiiþÿÿÿiýÿÿÿiöÿÿÿiúÿÿÿiûÿÿÿiÿÿÿÿiùÿÿÿiÿÿÿiøÿÿÿiüÿÿÿi*RRRR R!RthelltellR"(shesha(slosllo(shelloxshello((shellowosrldslowo(shellowosellosrld(R'R((sheshel(sheR'(i*(R-RùRøR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_endswith_sR

cCsÊ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itdddƒ|itd	ddƒ|itdddƒdS(
NR3t__contains__RVR~tabctabcRtasdftasd(R-RùRø(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest___contains__scCsØ|iddddƒ|iddddƒ|iddddƒ|idddtdd	ƒƒ|idddtdd
ƒƒ|idddtddƒƒ|idddtddƒƒ|itddd
ƒdS(NuaRVR
iuciÿÿÿÿluabciièiuRW(R-tsliceR0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_subscript›scCsû|idddddƒ|idddddƒ|idddddƒ|idddd	dƒ|id
ddd	dƒ|idddddƒ|idddddƒ|idddddƒ|iddddd	ƒ|itddd
ƒdS(NRVt__getslice__iièiRƒiR€iRR3iÐRW(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyt
test_slice§scCs…|iddddƒ|iddddƒ|iddddƒ|iddddƒ|itddƒ|itdddƒdS(	NR3RVt__mul__iÿÿÿÿiit	abcabcabci(R-R0R:(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_mulµsc
Cs|idddddddgƒ|idd	ddƒ|id
d	dd ƒ|idd	dd!ƒ|idddtƒƒ|id
ddd"ƒ|idddtdgƒƒtioÕ|itdƒtdƒddddgƒ|itdƒddtdƒddgƒ|itdƒdddtdƒdgƒ|itdƒddddtdƒgƒ|itdddtdƒdgƒnxydddgD]h}|id|d|d ddd|g|ƒ|id|d|d ddd|f|ƒq¡W|itddtƒƒ|idddt	ƒƒ|itddƒ|itdddƒ|itddtdddgƒƒy&d„}|i
dƒi|ƒƒWn9tj
o-}dt|ƒjo|i
dƒqünX|i
dƒdS(#Nsa b c dRRFRRRRyR[R3tbdtacsw x y zRVtzsa.b.cRÍiiii}Räiÿÿÿÿsa b ciRl{css
ddVdS(NiR3((((s-/usr/local/lib/python2.5/test/string_tests.pytfßst+sjoin() ate exception messagesexception not raised(RRRRy(R3RR3Ry(RR3RR3(sabc(R-RRRR¡R¢R0R:R
RRRFRtfail(RR	R:te((s-/usr/local/lib/python2.5/test/string_tests.pyt	test_joinÀs>"
++++)%	c
Cs'|iddddƒ|iddddƒ|idd	ddƒ|idd	ddƒ|id
d	ddƒ|idd	dd
ƒ|iddddƒ|idd	ddƒx*d*D]"}|ittfd	d|ƒq·W|iddddƒ|iddddƒ|iddddƒ|itddƒ|itdddƒ|itddd+ƒ|itd	dd,ƒ|itddhƒ|itddd-ƒ|id d!dhd d"<ƒ|id#dd$d%dd#dƒ|itd&dd.ƒ|itd'dd/ƒ|itd)dd0ƒdS(1Ns+hello+s+%s+t__mod__Rs+10+s+%d+i
Rs%ct"i"t$i$t10s%dsiiœÿÿÿi s 42s%3ldi*s0042.00s%07.2fs%07.2FRVs%(foo)ss%s%ss%(foos%(foo)s %(bar)stfootbars	%((foo))ss(foo)igRs%sxs%*ss%10.*fgE@s%10(iœÿÿÿi (i*(N(RCi*(RCRD(RCgE@(i*(R-R0RcRrR:R‘(Rtordinal((s-/usr/local/lib/python2.5/test/string_tests.pyttest_formattingès2 "cCs›x”tdƒD]†}d|}d}xmtdƒD]_}|ddd}|djo'|d	jo|it|d
|ƒq0|i|d
|ƒq0Wq
WdS(Nids%%.%ifg{®Gáz„?i<gh¡tTû!	@g@g$@i2iCR?(RBR0RrR1(RtprectformatR#R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_floatformattings


cCsî|idddƒ|itddƒ|idddƒ|itddƒ|idddddƒ|itddƒ|idddƒ|itddƒ|iddd	ƒ|itddƒ|iddd
ƒ|itddƒdS(NRRˆRiRûRlRöRGR6R«R(R-Rù(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_inplace_rewritesscCs½|iddddƒd}|id|ddƒ|id|ddƒ|id|ddƒ|id|ddƒ|it|dd
ƒ|it|ddƒ|ididƒdƒdS(Nsthis is the parttistion methodsthis is the partition methodt	partitionshttp://www.python.orgthttps://swww.python.orgR3RËshttp://shttp://www.python.torgsa/b/cu/Rt/sb/c(sthis is the parRKstion method(RMs://swww.python.org(shttp://www.python.orgR3R3(R3shttp://swww.python.org(shttp://www.python.RNR3(RROsb/c(R-R0RcR:R‘R&RL(RtS((s-/usr/local/lib/python2.5/test/string_tests.pyttest_partition.s	
cCs½|iddddƒd}|id|ddƒ|id|ddƒ|id|ddƒ|id|ddƒ|it|dd
ƒ|it|ddƒ|ididƒdƒdS(Nsthis is the rpartiRKs	on methodsthis is the rpartition methodt
rpartitionshttp://www.python.orgRMs://swww.python.orgR3RËshttp://shttp://www.python.RNsa/b/cu/sa/bROR(sthis is the rpartistis	on method(shttps://swww.python.org(R3R3shttp://www.python.org(R3shttp://swww.python.org(shttp://www.python.sorgR3(sa/bROR(R-R0RcR:R‘R&RR(RRP((s-/usr/local/lib/python2.5/test/string_tests.pyttest_rpartition@s	
(RRRúRþRRRRRRRR#R)R/R1R3R6R>RFRIRJRQRS(((s-/usr/local/lib/python2.5/test/string_tests.pyRõÎs*	
	
			
							-	1					(	#			tMixinStrStringUserStringTestcBseZd„Zd„ZRS(cCs]|iditttdƒƒƒiddƒtiddƒƒ|it	tiddƒdS(NR3iRVRtxyzw(
R&RFtmaptchrRBRGtstringt	maketransR.Rc(R((s-/usr/local/lib/python2.5/test/string_tests.pyttest_maketransVs'cCsµtiddƒ}|iddd|dƒtiddƒ}|id	dd|ƒ|iddd|ƒ|id
dd|dƒ|itdddd
ƒ|itdddƒdS(NRVRtxyzxyzt	xyzabcdeft	translateRWRRˆtAbctyzRs	too shortR™(RXRYR-R0Rc(Rttable((s-/usr/local/lib/python2.5/test/string_tests.pyttest_translate]s(RRRZRa(((s-/usr/local/lib/python2.5/test/string_tests.pyRTRs	tMixinStrUserStringTestcBseZeio
d„ZnRS(cCsÝddddg}x@|D]8\}}|i|d	d
|ƒ|id	|d|ƒqWyddk}Wntj
on4Xd
}|i|d	d
dƒ|id	|ddƒ|itdddƒ|itdd
dƒdS(Ntrot13suryyb jbeyqtbase64saGVsbG8gd29ybGQ=
thext68656c6c6f20776f726c64tuus)begin 666 <data>
+:&5L;&\@=V]R;&0 
 
end
shello worldtencodetdecodeiÿÿÿÿsxœËHÍÉÉW(Ï/ÊI]tzlibRi*(srot13suryyb jbeyq(sbase64saGVsbG8gd29ybGQ=
(shexRf(suus)begin 666 <data>
+:&5L;&\@=V]R;&0 
 
end
(R-RjtImportErrorR0R:(RtcodecstencodingtdataRj((s-/usr/local/lib/python2.5/test/string_tests.pyttest_encoding_decodingns"	(RRRR¡Ro(((s-/usr/local/lib/python2.5/test/string_tests.pyRbis
tMixinStrUnicodeTestcBseZd„ZRS(cCsæ|i}d|fd„ƒY}|dƒ}|ƒi|gƒ}|i||j	ƒ|it|ƒ|jƒ|dƒ}|ƒi|gƒ}|i||jƒ|tjo|dƒ}di|gƒ}|i||j	ƒ|it|ƒ|jƒ|dƒ}di|gƒ}|i||jƒn·|tjo˜|dƒ}di|gƒ}|i||j	ƒ|it|ƒtjƒ|dƒ}di|gƒ}|i||j	ƒ|it|ƒtjƒn|id|ƒdS(NtsubclasscBseZRS((RR(((s-/usr/local/lib/python2.5/test/string_tests.pyRqsR[R3us*unexpected type for MixinStrUnicodeTest %r(RRFR'ttypeR¢RR<(RttRqts1ts2((s-/usr/local/lib/python2.5/test/string_tests.pyttest_bug1001011‡s6	

(RRRv(((s-/usr/local/lib/python2.5/test/string_tests.pyRp„s(t__doc__tunittestRXR?RpRRRRR
RtTestCaseRRõRTRbRp(((s-/usr/local/lib/python2.5/test/string_tests.pys<module>s0ÿÿ»ÿ…

Man Man