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__/test_property.cpython-33.pyo

�
��f�c@s�ddlZddlZddlmZGdd�de�ZGdd�de�ZGdd�de�ZGd	d
�d
e�ZGdd�de	�Z
Gd
d�de
�ZGdd�de	�ZGdd�de�Z
Gdd�de
�ZGdd�de	�ZGdd�dej�ZGdd�de�ZGdd�de�ZGdd�dej�Zdd �Zed!kr�e�ndS("iN(urun_unittestcBs|EeZdZdS(uPropertyBaseN(u__name__u
__module__u__qualname__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertyBasesuPropertyBasecBs|EeZdZdS(uPropertyGetN(u__name__u
__module__u__qualname__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertyGetsuPropertyGetcBs|EeZdZdS(uPropertySetN(u__name__u
__module__u__qualname__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertySetsuPropertySetcBs|EeZdZdS(uPropertyDelN(u__name__u
__module__u__qualname__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertyDelsuPropertyDelcBs\|EeZdZdd�Zedd��Zejdd��Zejdd��ZdS(u	BaseClasscCs
d|_dS(Ni(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu__init__suBaseClass.__init__cCs|jS(uBaseClass.getter(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspamsuBaseClass.spamcCs
||_dS(N(u_spam(uselfuvalue((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspamscCs
|`dS(N(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam!sN(u__name__u
__module__u__qualname__u__init__upropertyuspamusetterudeleter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu	BaseClasssu	BaseClasscBsV|EeZdZejjdd��Zejdd��Zejdd��ZdS(uSubClasscCst|j��dS(uSubClass.getterN(uPropertyGetu_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam'su
SubClass.spamcCst|j��dS(N(uPropertySetu_spam(uselfuvalue((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam,scCst|j��dS(N(uPropertyDelu_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam0sN(u__name__u
__module__u__qualname__u	BaseClassuspamugetterusetterudeleter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuSubClass%suSubClasscBs8|EeZdZdZdd�Zeedd�ZdS(uPropertyDocBaseicCs|jS(N(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu	_get_spam6suPropertyDocBase._get_spamudocuspam spam spamN(u__name__u
__module__u__qualname__u_spamu	_get_spamupropertyuspam(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertyDocBase4suPropertyDocBasecBs,|EeZdZejjdd��ZdS(uPropertyDocSubcCs|jS(u*The decorator does not use this doc string(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam;suPropertyDocSub.spamN(u__name__u
__module__u__qualname__uPropertyDocBaseuspamugetter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertyDocSub:suPropertyDocSubcBs,|EeZdZejjdd��ZdS(uPropertySubNewGettercCsdS(u
new docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspamAsuPropertySubNewGetter.spamN(u__name__u
__module__u__qualname__u	BaseClassuspamugetter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertySubNewGetter@suPropertySubNewGettercBs;|EeZdZedd��Zejdd��ZdS(uPropertyNewGettercCsdS(uoriginal docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspamGsuPropertyNewGetter.spamcCsdS(u
new docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspamKsN(u__name__u
__module__u__qualname__upropertyuspamugetter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertyNewGetterFsuPropertyNewGettercBs�|EeZdZdd�Zdd�Zejejj	dkd�dd��Z
ejejj	dkd�d	d
��Zdd�Zejejj	dkd�d
d��Z
dd�ZdS(u
PropertyTestscCs�t�}|j|jd�|j|jd�d|_|j|jd�|j|jd�t|d�|jt|d��|jt|d��d|_|j|jd�|j|jd�dS(Nii
uspamu_spami(u	BaseClassuassertEqualuspamu_spamudelattru
assertTrueuhasattr(uselfubase((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu!test_property_decorator_baseclassQs		
	u/PropertyTests.test_property_decorator_baseclasscCsRt�}|jtt|d�|jtt|dd�|jtt|d�dS(Nuspam(	uSubClassuassertRaisesuPropertyGetugetattruPropertySetusetattruNoneuPropertyDeludelattr(uselfusub((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu test_property_decorator_subclass`s	u.PropertyTests.test_property_decorator_subclassiu)Docstrings are omitted with -O2 and abovecCs&t�}|j|jjjd�dS(NuSubClass.getter(uSubClassuassertEqualu	__class__uspamu__doc__(uselfusub((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu$test_property_decorator_subclass_docgs	u2PropertyTests.test_property_decorator_subclass_doccCs&t�}|j|jjjd�dS(NuBaseClass.getter(u	BaseClassuassertEqualu	__class__uspamu__doc__(uselfubase((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu%test_property_decorator_baseclass_docms	u3PropertyTests.test_property_decorator_baseclass_doccCsHt�}t�}|j|jjjd�|j|jjjd�dS(Nuspam spam spam(uPropertyDocBaseuPropertyDocSubuassertEqualu	__class__uspamu__doc__(uselfubaseusub((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyutest_property_decorator_docss		u)PropertyTests.test_property_decorator_doccCsnt�}|j|jd�|j|jjjd�t�}|j|jd�|j|jjjd�dS(Niu
new docstringi(uPropertySubNewGetteruassertEqualuspamu	__class__u__doc__uPropertyNewGetter(uselfunewgettersubu	newgetter((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu!test_property_getter_doc_overrideys		u/PropertyTests.test_property_getter_doc_overridecs�x[d	d
gdgddfD]>�G�fdd�dt�}|j|jjt���qWGdd�dt��|jt��+G�fdd�dt�}|jjWdQXdS(Niuu1cs5|EeZdZdd�Z�e_ee�ZdS(uEPropertyTests.test_property___isabstractmethod__descriptor.<locals>.CcSsdS(N((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyufoo�suIPropertyTests.test_property___isabstractmethod__descriptor.<locals>.C.fooN(u__name__u
__module__u__qualname__ufoou__isabstractmethod__uproperty(u
__locals__(uval(u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuC�s	uCcBs&|EeZdZdd�ZeZdS(uKPropertyTests.test_property___isabstractmethod__descriptor.<locals>.NotBoolcSs
t��dS(N(u
ValueError(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu__nonzero__�suWPropertyTests.test_property___isabstractmethod__descriptor.<locals>.NotBool.__nonzero__N(u__name__u
__module__u__qualname__u__nonzero__u__len__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuNotBool�suNotBoolcs8|EeZdZdd�Z��e_ee�ZdS(uEPropertyTests.test_property___isabstractmethod__descriptor.<locals>.CcSsdS(N((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyufoo�suIPropertyTests.test_property___isabstractmethod__descriptor.<locals>.C.fooN(u__name__u
__module__u__qualname__ufoou__isabstractmethod__uproperty(u
__locals__(uNotBool(u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuC�sTF(	uTrueuFalseuobjectuassertIsufoou__isabstractmethod__ubooluassertRaisesu
ValueError(uselfuC((uNotBooluvalu7/opt/alt/python33/lib64/python3.3/test/test_property.pyu,test_property___isabstractmethod__descriptor�s" u:PropertyTests.test_property___isabstractmethod__descriptorN(u__name__u
__module__u__qualname__u!test_property_decorator_baseclassu test_property_decorator_subclassuunittestuskipIfusysuflagsuoptimizeu$test_property_decorator_subclass_docu%test_property_decorator_baseclass_docutest_property_decorator_docu!test_property_getter_doc_overrideu,test_property___isabstractmethod__descriptor(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu
PropertyTestsPs	u
PropertyTestscBs|EeZdZdZdS(uPropertySubuThis is a subclass of propertyN(u__name__u
__module__u__qualname__u__doc__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertySub�suPropertySubcBs |EeZdZdZfZdS(uPropertySubSlotsu5This is a subclass of property that defines __slots__N(u__name__u
__module__u__qualname__u__doc__u	__slots__(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertySubSlots�suPropertySubSlotscBs�|EeZdZdd�Zejejjdkd�dd��Z	ejejjdkd�dd��Z
ejejjdkd�d	d
��ZdS(uPropertySubclassTestscCs?yGdd�dt�}Wntk
r.Yn
Xtd��dS(NcBs&|EeZdZedd��ZdS(uFPropertySubclassTests.test_slots_docstring_copy_exception.<locals>.FoocSsdS(u5Trying to copy this docstring will raise an exceptioni((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�suKPropertySubclassTests.test_slots_docstring_copy_exception.<locals>.Foo.spamN(u__name__u
__module__u__qualname__uPropertySubSlotsuspam(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFoo�suFoouAttributeError not raised(uobjectuAttributeErroru	Exception(uselfuFoo((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu#test_slots_docstring_copy_exception�s

u9PropertySubclassTests.test_slots_docstring_copy_exceptioniu)Docstrings are omitted with -O2 and abovecCs0Gdd�dt�}|j|jjd�dS(NcBs&|EeZdZedd��ZdS(u6PropertySubclassTests.test_docstring_copy.<locals>.FoocSsdS(u!spam wrapped in property subclassi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�su;PropertySubclassTests.test_docstring_copy.<locals>.Foo.spamN(u__name__u
__module__u__qualname__uPropertySubuspam(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFoo�suFoou!spam wrapped in property subclass(uobjectuassertEqualuspamu__doc__(uselfuFoo((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyutest_docstring_copy�s	u)PropertySubclassTests.test_docstring_copycs�Gdd�dt����}|j|jd�d|_|j|jd�|j�jjd�G�fdd�d��}|�}|j|jd�d|_|j|jd	�|j|jjd�dS(
NcBsG|EeZdZdd�Zedd��Zejdd��ZdS(uOPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.FoocSs
d|_dS(Ni(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu__init__�suXPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.Foo.__init__cSs|jS(u!spam wrapped in property subclass(u_spam(uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�suTPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.Foo.spamcSs
||_dS(uthis docstring is ignoredN(u_spam(uselfuvalue((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�sN(u__name__u
__module__u__qualname__u__init__uPropertySubuspamusetter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFoo�suFooiiu!spam wrapped in property subclasscs,|EeZdZ�jjdd��ZdS(uRPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.FooSubcSs
d|_dS(uanother ignored docstringueggsN(u_spam(uselfuvalue((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�suWPropertySubclassTests.test_property_setter_copies_getter_docstring.<locals>.FooSub.spamN(u__name__u
__module__u__qualname__uspamusetter(u
__locals__(uFoo(u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFooSub�suFooSubiueggs(uobjectuassertEqualuspamu__doc__(uselfufoouFooSubufoosub((uFoou7/opt/alt/python33/lib64/python3.3/test/test_property.pyu,test_property_setter_copies_getter_docstring�s 
						uBPropertySubclassTests.test_property_setter_copies_getter_docstringcsxGdd�dt�}|j|jjd�Gdd�dt��G�fdd�d��}|j|jjd�dS(NcBs;|EeZdZedd��Zejdd��ZdS(uIPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.FoocSsdS(ua docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�suNPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.Foo.spamcSsdS(ua new docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�sN(u__name__u
__module__u__qualname__uPropertySubuspamugetter(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFoo�suFooua new docstringcBs&|EeZdZedd��ZdS(uMPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.FooBasecSsdS(ua docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�suRPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.FooBase.spamN(u__name__u
__module__u__qualname__uPropertySubuspam(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFooBase�suFooBasecs,|EeZdZ�jjdd��ZdS(uJPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.Foo2cSsdS(ua new docstringi((uself((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuspam�suOPropertySubclassTests.test_property_new_getter_new_docstring.<locals>.Foo2.spamN(u__name__u
__module__u__qualname__uspamugetter(u
__locals__(uFooBase(u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuFoo2�suFoo2(uobjectuassertEqualuspamu__doc__(uselfuFoouFoo2((uFooBaseu7/opt/alt/python33/lib64/python3.3/test/test_property.pyu&test_property_new_getter_new_docstring�s
	u<PropertySubclassTests.test_property_new_getter_new_docstringN(u__name__u
__module__u__qualname__u#test_slots_docstring_copy_exceptionuunittestuskipIfusysuflagsuoptimizeutest_docstring_copyu,test_property_setter_copies_getter_docstringu&test_property_new_getter_new_docstring(u
__locals__((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyuPropertySubclassTests�s uPropertySubclassTestscCsttt�dS(N(urun_unittestu
PropertyTestsuPropertySubclassTests(((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu	test_main�su	test_mainu__main__(usysuunittestutest.supporturun_unittestu	ExceptionuPropertyBaseuPropertyGetuPropertySetuPropertyDeluobjectu	BaseClassuSubClassuPropertyDocBaseuPropertyDocSubuPropertySubNewGetteruPropertyNewGetteruTestCaseu
PropertyTestsupropertyuPropertySubuPropertySubSlotsuPropertySubclassTestsu	test_mainu__name__(((u7/opt/alt/python33/lib64/python3.3/test/test_property.pyu<module>s&
LW