Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/zope/interface/tests/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyc


Kc@s.dZddlmZmZddlmZddlmZdefdYZde	fdYZ
d	efd
YZee
_defdYZ
d
e
fdYZdefdYZdefdYZde
jfdYZde	fdYZdeefdYZdeefdYZdefdYZde	fdYZeZde	fd YZejZed!Zed"egZed#Zed$eegZd%Z d&efd'YZ!d(Z"d)e!fd*YZ#d+e	fd,YZ$d-S(.sOUnit Test Fixtures

$Id: unitfixtures.py 110536 2010-04-06 02:59:44Z tseaver $
i(t	Interfacet	invariant(t	Attribute(tInvalidtmytestcBseZRS((t__name__t
__module__(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyRstCcBseZdZdZRS(cCsdS(sreturn 1i((tselftatb((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytm1scCsdS(sreturn 2i((RR	R
((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytm2s(RRRR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyRs	tICcBseZdZdZRS(cCsdS(sreturn 1N((R	R
((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR&scCsdS(sreturn 2N((R	R
((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR)s(RRRR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR
%s	tI1cBseZdZRS(cCsdS(tblahN((((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytma1s(RRR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR0stI2cBseZRS((RR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR4stI3cBseZRS((RR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR6stI4cBseZRS((RR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR8stAcBseZeZRS((RRRt__implemented__(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR:stBcBseZeefZRS((RRRRR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR=stDcBseZRS((RR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR@stEcBseZejejfZRS((RRRRR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyRBstFooInterfacecBsGeZdZedZdZddd
dZdZd	ZRS(s  This is an Abstract Base Class s"fuzzed over beyond all recognitioncCsdS(s This is aMethod N((tfootbartbingo((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytaMethodKsiswhere you get sloshediicCsdS(s This is anotherMethod N((RRR((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt
anotherMethodNscGsdS(s
 yadda yadda N((tziptargues((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytwammyQscKsdS(s useless code is fun! N((tkeywords((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytuselessTs(ii(	RRt__doc__RtfoobarRRR!R#(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyRFs		tFoocBsJeZdZefZdZdZddd
dZdZd	Z	RS(s A concrete class tyeahcCsdS(s This is aMethod sbarf!((RRRR((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR^siswhere you get sloshediicCsdS(s This is anotherMethod sbarf!((RRRR((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyRbscGsdS(s
 yadda yadda sbarf!((RRR ((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR!fscKsdS(s useless code is fun! sbarf!((RR"((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR#js(ii(
RRR$RRR%RRR!R#(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR&Ws			tBlahcBseZRS((RR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR(pstFunInterfacetBarInterfacetBobInterfacetBazInterfacecCs8t|ddr4t|ddr4tdndS(NRRsIf Foo, then Bar!(tgetattrtNoneR(tobj((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytifFooThenBarzs%t
IInvariantcBs*eZedZedZeeRS(Rs*bar; must eval to Boolean True if foo does(RRRRRRR0(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR1}scCsgt|dd}t|dd}|dk	rct|t|rc||ksctdqcndS(NRRs%Please, Boo MUST be greater than Foo!(R-R.t
isinstancettypeR(R/RR((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pytBarGreaterThanFoos
!t
ISubInvariantcBseZeeRS((RRRR4(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR5st
InvariantCcBseZRS((RR(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyR6sN(%R$tzope.interfaceRRtzope.interface.interfaceRtzope.interface.exceptionsRRtobjectRR
RRRRRtdeferredRRRRRR&tfoo_instanceR(t	__class__tnewR)R*R+R,R0R1R4R5R6(((sE/usr/lib/python2.7/dist-packages/zope/interface/tests/unitfixtures.pyt<module>s: