Hacked By AnonymousFox

Current Path : /proc/thread-self/root/usr/lib64/python2.7/lib-tk/test/test_tkinter/
Upload File :
Current File : //proc/thread-self/root/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyo

�
zfc@sddlZddlZddlmZmZmZmZmZmZm	Z	dej
fd��YZdefd��YZdefd��YZ
d	efd
��YZdefd��YZd
efd��YZee
eeefZedkrddlmZee�ndS(i����N(tVariablet	StringVartIntVart	DoubleVart
BooleanVartTcltTclErrortTestBasecBseZd�Zd�ZRS(cCst�|_dS(N(Rtroot(tself((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pytsetUp	scCs
|`dS(N(R(R	((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttearDowns(t__name__t
__module__R
R(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRs	tTestVariablecBsYeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
RS(	cGs"|jj|jjdd|��S(Ntinfotexists(Rt
getbooleantcall(R	targs((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pytinfo_existsscCs?t|j�}|jd|j��|jt|�d�dS(Nts
^PY_VAR(\d+)$(RRtassertEqualtgettassertRegexpMatcheststr(R	tv((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_defaultscCsEt|jdd�}|jd|j��|jdt|��dS(Ns
sample stringtvarname(RRRRR(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_name_and_valuescCs^|j|jd��t|jdd�}|j|jd��~|j|jd��dS(NRs
sample string(tassertFalseRRRt
assertTrue(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest___del__s
cCsv|j|jd��t|jdd�}t|jdd�}~|j|jd��~|j|jd��dS(NRtname(RRRR(R	tv1tv2((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_dont_unset_not_existing&scCsxt|jdd�}t|jdd�}|j||�t|jdd�}t|jdd�}|j||�dS(NR!tabc(RRRRtassertNotEqual(R	R"R#tv3tv4((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest___eq__0scCs-|jt��t|jdd�WdQXdS(NR!i{(tassertRaisest	TypeErrorRR(R	((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_invalid_name:sc	Cs|jt��t|jdd�WdQX|jt��|jjdd�WdQX|jt��|jjdd�WdQXdS(NR!svarnametvalue(R*t
ValueErrorRRtglobalsetvartsetvar(R	((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_null_in_name>scsot|j�}t|�}g��fd�}�fd�}|jd|�}|jd|�}|jt|j��d|fd|fg�|j�g�|jd�|j�d|ddfg�g�|j�|j�d	|ddfg�g�t|j��}|j	d|�|jt|j��|�|j
t��|j	dd�WdQX|jt|j��|�|j	d|d
f�|jt|j��|�|j�|j�d	|ddfg�g�|j	d|�|j|j�d|fg�|j�|j�g�g�~tj
�|jd�|j�d|ddfg�dS(Ncs�jd|�dS(Ntread(R2(tappend(R(ttrace(s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pytread_tracerJscs�jd|�dS(Ntwrite(R6(R3(R(R4(s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pytwrite_tracerLstrtwutspamR6RtwR2i+teggs(RRRttrace_variableRtsortedttrace_vinfotsetRt
trace_vdeleteR*Rtgctcollect(R	RtvnameR5R7tcb1tcb2R((R4s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyt
test_traceFsF.





(RR
RRRR R$R)R,R1RG(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRs					
	
		t
TestStringVarcBs#eZd�Zd�Zd�ZRS(cCs)t|j�}|jd|j��dS(NR(RRRR(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRzscCsXt|jdd�}|jd|j��|jjdd�|jd|j��dS(NR%R!R-(RRRRR/(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_get~scCsXt|jdd�}|jd|j��|jjdd�|jd|j��dS(NsabcdefR!svalue(RRRRR/(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyt
test_get_null�s(RR
RRIRJ(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRHxs		t
TestIntVarcBs#eZd�Zd�Zd�ZRS(cCs)t|j�}|jd|j��dS(Ni(RRRR(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyR�scCsXt|jdd�}|jd|j��|jjdd�|jd|j��dS(Ni{R!t345iY(RRRRR/(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRI�scCst|jdd�}|jjdd�|jt��|j�WdQX|jjdd�|jt��|j�WdQXdS(NR!R-s345.0(RRR/R*R.R(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_invalid_value�s(RR
RRIRM(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRK�s		t
TestDoubleVarcBs,eZd�Zd�Zd�Zd�ZRS(cCs)t|j�}|jd|j��dS(Ng(RRRR(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyR�scCsXt|jdd�}|jd|j��|jjdd�|jd|j��dS(Ng�G�z��?R!s3.45g������@(RRtassertAlmostEqualRR/(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRI�scCs�t|jdd�}|jd|j��|jjdd�|jd|j��|jjdd�|jd|j��dS(Ng�G�z��?R!s3.45g������@t456i�(RRRORR/(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_get_from_int�scCsLt|jdd�}|jjdd�|jt��|j�WdQXdS(NR!R-(RRR/R*R.R(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRM�s(RR
RRIRQRM(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRN�s			tTestBooleanVarcBs,eZd�Zd�Zd�Zd�ZRS(cCs)t|j�}|j|j�t�dS(N(RRtassertIsRtFalse(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyR�scCs�t|jtd�}|j|j�t�|jjdd�|j|j�t�|jjd|jj�rudnd�|j|j�t�|jjdd�|j|j�t�|jjd|jj�r�dnd�|j|j�t�|jjdd�|j|j�t�|jjdd	�|j|j�t�|jjdd
�|j|j�t�|jjdd�|j|j�t�dS(NR!t0i*iil*lltonu0uon(RRtTrueRSRR/RTtwantobjects(R	R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRI�s$((cCs�|jj�rdnd}|jj�r0dnd}t|jdd�}|jt�|j|jjd�|�|jd�|j|jjd�|�|jd�|j|jjd�|�|jd�|j|jjd�|�|jd�|j|jjd�|�|jd�|j|jjd�|�|jd	�|j|jjd�|�|jd
�|j|jjd�|�|jd�|j|jjd�|�dS(Nit1iRUR!i*l*lRVu0uon(RRXRR@RWRtglobalgetvar(R	ttruetfalseR((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_set�s*








cCs�|jj�rdnd}t|jdd�}|jt��|jd�WdQX|j|jjd�|�|jjdd�|jt��|j	�WdQX|jjdd�|jt��|j	�WdQXdS(NiRUR!R-s1.0(
RRXRR*RR@RRZR/R(R	R\R((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyttest_invalid_value_domain�s(RR
RRIR]R^(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyRR�s			t__main__(trun_unittest(tunittestRBtTkinterRRRRRRRtTestCaseRRRHRKRNRRt	tests_guiRttest.supportR`(((s?/usr/lib64/python2.7/lib-tk/test/test_tkinter/test_variables.pyt<module>s4	h?	

Hacked By AnonymousFox1.0, Coded By AnonymousFox