Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/test/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/test/__pycache__/buffer_tests.cpython-33.pyo

�
��f%+c@s2ddlZddlZGdd�de�ZdS(iNcBs�|EeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(S()uMixinBytesBufferCommonTestsuITests that work for both bytes and buffer objects.
    See PEP 3137.
    cCstd��dS(u4Convert x into the appropriate type for these tests.u(test class must provide a marshal methodN(uRuntimeError(uselfux((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyumarshalsu#MixinBytesBufferCommonTests.marshalcCs�|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|jt|jd�jd�dS(	NssasAs
sabcsaBcsabc
i*(uassertFalseumarshaluisloweru
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_islowersu(MixinBytesBufferCommonTests.test_islowercCs�|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|jt|jd�jd	�dS(
NssasAs
sABCsAbCsABC
sabci*(uassertFalseumarshaluisupperu
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_isuppersu(MixinBytesBufferCommonTests.test_isuppercCsW|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd	�j��|j|jd
�j��|j|jd�j��|jt|jd�jd
�dS(NssasAs
sA Titlecased LinesA
Titlecased LinesA Titlecased, LinesNot a capitalized StringsNot	a Titlecase StringsNot--a Titlecase StringsNOTsabci*(uassertFalseumarshaluistitleu
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_istitle$su(MixinBytesBufferCommonTests.test_istitlecCs|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|jt|jd	�jd
�dS(Nssas s	s
s
s 	
s 	
asabci*(uassertFalseumarshaluisspaceu
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_isspace2su(MixinBytesBufferCommonTests.test_isspacecCs�|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|jt|jd�jd�dS(	NssasAs
sabcsaBc123sabc
i*(uassertFalseumarshaluisalphau
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_isalpha=su(MixinBytesBufferCommonTests.test_isalphacCs|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|jt|jd	�jd
�dS(NssasAs
s	123abc456sa1b3csaBc000 sabc
sabci*(uassertFalseumarshaluisalnumu
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_isalnumGsu(MixinBytesBufferCommonTests.test_isalnumcCs�|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|j|jd�j��|jt|jd�jd�dS(Nssas0s
0123456789s0123456789asabci*(uassertFalseumarshaluisdigitu
assertTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_isdigitRsu(MixinBytesBufferCommonTests.test_isdigitcCsa|jd|jd�j��|jd|jd�j��|jt|jd�jd�dS(NshellosHeLLoi*(uassertEqualumarshaluloweruassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_lower[su&MixinBytesBufferCommonTests.test_lowercCsa|jd|jd�j��|jd|jd�j��|jt|jd�jd�dS(NsHELLOsHeLLoshelloi*(uassertEqualumarshaluupperuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_upper`su&MixinBytesBufferCommonTests.test_uppercCs�|jd|jd�j��|jd|jd�j��|jd|jd�j��|jd|jd�j��|jd|jd�j��|jt|jd�jd�dS(	Ns hello sHello shello sAaaasaaaasAaAashelloi*(uassertEqualumarshalu
capitalizeuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_capitalizeesu+MixinBytesBufferCommonTests.test_capitalizecCs�|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jdd	��|jt|jd�j�dS(
Ns
abc       sabci
sabc   iiis
abc*******s*(uassertEqualumarshaluljustuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_ljustns""""%u&MixinBytesBufferCommonTests.test_ljustcCs�|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jdd	��|jt|jd�j�dS(
Ns
       abcsabci
s   abciiis
*******abcs*(uassertEqualumarshalurjustuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_rjustvs""""%u&MixinBytesBufferCommonTests.test_rjustcCs�|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jdd	��|jt|jd�j�dS(
Ns
   abc    sabci
s abc  iiis
***abc****s*(uassertEqualumarshalucenteruassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_center~s""""%u'MixinBytesBufferCommonTests.test_centercCsB|jd|jd�j��|jt|jd�jd�dS(NshEllO CoMPuTErSsHeLLo cOmpUteRsshelloi*(uassertEqualumarshaluswapcaseuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_swapcase�s	u)MixinBytesBufferCommonTests.test_swapcasecCs�|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd	|jd	�jd��|jd	|jd	�jd��|jd
|jd	�jd��|jd|jd�jd��|jd
|jd
�jd��|jd|jd
�jd��|jt|jd�j�dS(Ns123iis0123is+123s+0123is-123s-0123s000ss34is0034(uassertEqualumarshaluzfilluassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_zfill�s""""""""""""u&MixinBytesBufferCommonTests.test_zfillcCsy|jd|jd�j��|jd|jd�jd��|jd|jd�jd��|jd|jd�jd��|jd|jd�j��|jd|jd�jd��|jd|jd�jd��|jd	|jd
�jd��|jt|jd�jd
d
�tjdkrutjd�dkru|jt	|jd�jtj�ndS(Nsabc
ab      def
g       hisabc
ab	def
g	hiisabc
ab  def
g   hiisabc
ab  def
g   hisabc
ab	def
g	hisabc
ab
def
g
his  a
 bs 	a
	bishelloi*i uPs	a
	bl(
uassertEqualumarshalu
expandtabsuassertRaisesu	TypeErrorusysumaxsizeustructucalcsizeu
OverflowError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_expandtabs�s&							""$	u+MixinBytesBufferCommonTests.test_expandtabscCs�|jd|jd�j��|jd|jd�j��|jd|jd�j��|jd|jd�j��|jd|jd�j��|jd	|jd
�j��|jt|jd�jd�dS(
Ns Hello s hello sHello shello sFormat This As Title StringsfOrMaT thIs aS titLe StringsFormat,This-As*Title;StringsfOrMaT,thIs-aS*titLe;StringsGetintsgetIntshelloi*(uassertEqualumarshalutitleuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu
test_title�s		u&MixinBytesBufferCommonTests.test_titlecCs�|jddddg|jd�j��|jddddg|jd�j��|jdddg|jd�j��|jdddg|jd�j��|jddddg|jd	�j��|jdddddg|jd
�j��|jdddddg|jd
�jd��|jddd
ddg|jd
�jd��|jdddddg|jd
�jdd��|jddd
ddg|jd
�jdd��|jt|jd�jdd�dS(Nsabcsdefssghisabc
def

ghis
abc
def

ghisabc
def
ghis
abc
def
ghi
sabc
def
ghi

s
abc
def
ghi

s
sabc
sdef
sghi
s
ukeependsi*FT(uassertEqualumarshalu
splitlinesuFalseuTrueuassertRaisesu	TypeError(uself((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyutest_splitlines�s*u+MixinBytesBufferCommonTests.test_splitlinesN(u__name__u
__module__u__qualname__u__doc__umarshalutest_islowerutest_isupperutest_istitleutest_isspaceutest_isalphautest_isalnumutest_isdigitu
test_loweru
test_upperutest_capitalizeu
test_ljustu
test_rjustutest_centeru
test_swapcaseu
test_zfillutest_expandtabsu
test_titleutest_splitlines(u
__locals__((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyuMixinBytesBufferCommonTestss(


		uMixinBytesBufferCommonTests(ustructusysuobjectuMixinBytesBufferCommonTests(((u6/opt/alt/python33/lib64/python3.3/test/buffer_tests.pyu<module>s