Current File : //home/strato/chroot/opt/RZpython2/lib/python2.7/test/test_typechecks.pyo
�
��#ec@s�dZddlZddlmZdefd��YZddd��YZdefd	��YZd
ejfd��YZ	d�Z
ed
kr�ej�ndS(s7Unit tests for __instancecheck__ and __subclasscheck__.i����N(ttest_supporttABCcBseZd�Zd�ZRS(cs/t�fd�tt|�|jg�D��S(s Implement isinstance(inst, cls).c3s|]}�j|�VqdS(N(t__subclasscheck__(t.0tc(tcls(s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pys	<genexpr>s(tanytsetttypet	__class__(Rtinst((Rs4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyt__instancecheck__	scsE|jjdt��t|g�B�t�fd�|j�D��S(sImplement issubclass(sub, cls).t__subclass__c3s|]}|�kVqdS(N((RR(t
candidates(s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pys	<genexpr>s(t__dict__tgetRRtmro(Rtsub((R
s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyRs%(t__name__t
__module__RR(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyRs	tIntegercBseZeZeeg�ZRS((RRRt
__metaclass__RtintR(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyRstSubIntcBseZRS((RR(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyRstTypeChecksTestcBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs6|jtjt�t�|jtjt�t�dS(N(tassertEqualRRRtTruetfloattFalse(tself((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyttestIsSubclassInternal"scCsn|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�dS(N(Rt
issubclassRRRRR(R((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyttestIsSubclassBuiltin&scCsn|jtdt�t�|jtdtf�t�|jtdt�t�|jtdtf�t�dS(Ni*g��Q�	@(Rt
isinstanceRRR(R((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyttestIsInstanceBuiltin,scCs?|jtt�t�t�|jtt�tf�t�dS(N(RR!RR(R((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyttestIsInstanceActual2scCs9|jttt�t�|jtttf�t�dS(N(RRRR(R((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyttestIsSubclassActual6scCs�|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�|jttt�t�|jtttf�t�|jtt�t�t�|jtt�tf�t�|jtt�t�t�|jtt�tf�t�|jtdt�t�|jtdtf�t�dS(Ni*(RRRRRRRR!(R((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyttestSubclassBehavior:scCs|ddd��Y}d|fd��Y}|jd|�|j|�|�|jtt|��|jt||��dS(NtXcBseZd�Zd�ZRS(cSstS(N(R(RR
((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyRMscSstS(N(R(RR((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyROs(RRRR(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyR&Ls	tSubcBseZRS((RR(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyR'Qsi((tassertNotIsInstancetassertIsInstancetassertFalseRRt
assertTrue(RR&R'((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyt
test_oldstyleJs(	RRRR R"R#R$R%R,(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyR s						cCstjt�dS(N(Rtrun_unittestR(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyt	test_mainXst__main__((
t__doc__tunittestttestRRRRRtTestCaseRR.Rtmain(((s4/opt/RZpython2/lib/python2.7/test/test_typechecks.pyt<module>s
8