403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.15
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python2.7/dist-packages/zope/interface/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyc
ó
ÔËÞKc@s-dZddlZddlmZmZmZddlmZmZddlmZddl	Z	d„Z
y'ddlmZddd	„ƒYZ
Wnek
r£nXd
dd„ƒYZee	jƒƒZdefd
„ƒYZdefd„ƒYZeefZd„Zedkr)ejddƒndS(s®Tests for advice

This module was adapted from 'protocols.tests.advice', part of the Python
Enterprise Application Kit (PEAK).  Please notify the PEAK authors
(pje@telecommunity.com and tsarna@sarna.org) if bugs are found or
Zope-specific changes are required, so that the PEAK version of this module
can be kept in sync.

PEAK is a Python application framework that interoperates with (but does
not require) Zope 3 and Twisted.  It provides tools for manipulating UML
models, object-relational persistence, aspect-oriented programming, and more.
Visit the PEAK home page at http://peak.telecommunity.com for more information.

$Id: test_advice.py 110736 2010-04-11 10:59:30Z regebro $
iÿÿÿÿN(tTestCaset	makeSuitet	TestSuite(taddClassAdvisortdetermineMetaclass(tgetFrameInfocs ‡‡fd†}t|ƒdS(Ncsˆjˆ|fƒ|gS(N(tappend(tklass(tvaluetlog(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytpong's(R(R	RR
((R	RsD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytping%s(t	ClassTypetClassicClasscBs eZeZeejƒƒZRS((t__name__t
__module__Rt
__metaclass__Rtsyst	_getframetclassLevelFrameInfo(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR
0st
NewStyleClasscBs eZeZeejƒƒZRS((RRttypeRRRRR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR6st
FrameInfoTestcBs>eZeejƒƒZd„Zd„Zd„Zd„Z	RS(cCsYt\}}}}|j|dƒx0|j||fD]}|j|tƒkƒq5WdS(Ntmodule(tmoduleLevelFrameInfotassertEqualst__dict__tassert_tglobals(tselftkindRtf_localst	f_globalstd((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckModuleInfo@scCsotj\}}}}|j|dƒ|j|tjkƒx-|j|fD]}|j|tƒkƒqKWdS(Ntclass(R
RRRRR(RRRRR R!((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckClassicClassInfoFs
cCsYtj\}}}}|j|dƒx-|j|fD]}|j|tƒkƒq5WdS(NR#(RRRRRR(RRRRR R!((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckNewStyleClassInfoNscCsxttjƒƒ\}}}}|j|dƒ|j|tƒkƒx-|j|fD]}|j|tƒkƒqTWdS(Ns
function call(RRRRRtlocalsRR(RRRRR R!((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyt
checkCallInfoUs
(
RRRRRRR"R$R%R'(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR<s
			tAdviceTestscBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(csŠg‰dtf‡fd†ƒY}x-dD]%}|jt|tƒƒ|\}q)W|jˆd|fd|gfd|ggfgƒdS(NtFoocs/eZeˆdƒeˆdƒeˆdƒRS(iii(RRR((R	(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR)as

iii(iii(tobjectRt
isinstancetlistR(RR)ti((R	sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyt
checkOrder_s

cCs5ytgdƒWntk
r$n
Xtdƒ‚dS(Nis.Should have detected advice outside class body(RtSyntaxErrortAssertionError(R((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytTODOcheckOutsidems
cCsOtjdkrdSdttfd„ƒY}|\}|j|jtkƒdS(NitaTypecBseZegdƒRS(i(RRR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR2{s(Rt
hexversionRRt	__class__(RR2((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckDoubleTypexs
	csUdtfd„ƒY‰dˆf‡fd†ƒY}|\}|j|jˆkƒdS(NtMcBseZRS((RR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR6‚stCcseZˆZegdƒRS(i(RRRR((R6(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR7…s(RRR4(RR7((R6sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckSingleExplicitMeta€s	csdtfd„ƒY‰dtfd„ƒY‰dd‡fd†ƒY}dd‡fd†ƒY}yd	||fd
„ƒY}Wntk
rŽn
Xtdƒ‚dˆˆfd
„ƒY‰d	||f‡fd†ƒY}|jt|tƒƒ|\}|jt|ˆƒƒdS(NtM1cBseZRS((RR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR9stM2cBseZRS((RR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR:stB1cseZˆZRS((RRR((R9(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR;’stB2cseZˆZRS((RRR((R:(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR<“sR7cBseZegdƒRS(i(RRR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR7–ss(Should have gotten incompatibility errortM3cBseZRS((RR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR=scseZˆZegdƒRS(i(RRRR((R=(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR7Ÿs(((Rt	TypeErrorR0RR+R,(RR;R<R7((R=R9R:sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckMixedMetass
	csRdtfd„ƒY‰dtf‡fd†ƒY}|jt|tfƒˆƒdS(NtmetametacBseZRS((RR(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR@©stmetacseZˆZRS((RRR((R@(sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyRA¬s(RRR(RRA((R@sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pytcheckMetaOfClass§s(RRR.R1R5R8R?RB(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyR(]s				
	cCsAtjddkr9tgtD]}t|dƒ^qƒSgSdS(Nit2tcheck(RtversionRtTestClassesR(tt((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyt
test_suite³s&t__main__tdefaultTestRH(((t__doc__tunittestRRRtzope.interface.adviceRRRRRttypesRR
tImportErrorRRRRR(RFRHRtmain(((sD/usr/lib/python2.7/dist-packages/zope/interface/tests/test_advice.pyt<module>s&	
!T	

Youez - 2016 - github.com/yon3zu
LinuXploit