Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/zope/component/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/zope/component/tests/test_security.pyc
�
6j/Qc@s�dZddlZdejfd��YZdejfd��YZdejfd��YZd	ejfd
��YZdejfd��YZd
�ZdS(sPure-Python hookable tests
i����NtPermissionProxyTestscBs#eZd�Zd�Zd�ZRS(cCsddlm}|S(Ni����(tPermissionProxy(tzope.component.securityR(tselfR((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt_getTargetClassscCs|j�|�S(N(R(Rtwrapped((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt_makeOnescCs�ddlm}ddlm}ddlm}d|fd��Y}||�dtfd��Y�}|�}|j|�}|j||�||��dS(	Ni����(t	Interface(timplementer(t
providedBytIFoocBseZRS((t__name__t
__module__(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
 stFoocBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
"s(tzope.interfaceRRR	tobjectRtassertEqual(RRRR	R
R
tfootproxy((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt$test_proxy_delegates___provided_by__s	(RRRRR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyRs		t
Test__checkercBs,eZd�Zd�Zd�Zd�ZRS(cOsddlm}|||�S(Ni����(t_checker(RR(RtargstkwR((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt_callFUT,scCsYddlm}|jt�ddd�}|j|ji|d6�|j|j�dS(Ni����(t
CheckerPublicszope.Publict__call__(((tzope.security.checkerRRRRtget_permissionstassertFalsetset_permissions(RRtchecker((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt0test_no_allowed_attributes_no_allowed_interfaces0scCs�ddlm}d|fd��Y}d|fd��Y}|jt�d||fd�}|j|jidd6dd	6dd
6�|j|j�dS(Ni����(RR
cBseZd�Zd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pytbar9scSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pytbaz;s(RRR!R"(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
8s	tISpamcBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pytqux>s(RRR$(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR#=sttestingR!R"R$((RRRRRRRR(RRR
R#R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_w_allowed_interfaces6s!cCsP|jt�ddd�}|j|jidd6dd6�|j|j�dS(NR%RR!((sfoosbar(RRRRRR(RR((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_w_allowed_attributesEs(RRRR R&R'(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR*s			tTest_proxifycBsGeZd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cOsddlm}|||�S(Ni����(tproxify(RR)(RRRR)((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyRNscCsdtfd��Y}|�S(Nt_ContextcBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!Ts(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR*Ss(R(RR*((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt_makeContextRscCs,|j�}|jt|j|dd�dS(Nt
permissionR%(R+tassertRaisest
ValueErrorR(Rtctx((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_no_checker_no_providesXscCsRddlm}d|fd��Y}|j�}|jt|j|d|�dS(Ni����(RR
cBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!_s(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
^stprovides(RRR+R-R.R(RRR
R/((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_no_checker_no_permission\scCs�ddlm}ddlm}ddlm}d|fd��Y}|j�}|j|d|dd	�}|j||�|k�|j	}|j
|ji|d
6�|j|j
�dS(Ni����(R(R(tgetProxiedObjectR
cBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!is(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
hsR1R,szope.PublicR!(RRRRt
zope.proxyR3R+Rt
assertTruet__Security_checker__RRRR(RRRR3R
R/RR((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt0test_no_checker_w_provides_and_permission_publicds	cCs�ddlm}ddlm}d|fd��Y}|j�}|j|d|dd�}|j||�|k�|j}|j|j	idd	6�|j
|j�dS(
Ni����(R(R3R
cBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!vs(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
usR1R,R%R!(RRR4R3R+RR5R6RRRR(RRR3R
R/RR((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt3test_no_checker_w_provides_and_permission_protectedrs	cCsjddlm}t�}|j�}|j||�}|j||�|k�|j|j|k�dS(Ni����(R3(R4R3RR+RR5R6(RR3t_CHECKERR/R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_w_checkers	(	RRRR+R0R2R7R8R:(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR(Ls						
tTest_protectedFactorycBs#eZd�Zd�Zd�ZRS(cOsddlm}|||�S(Ni����(tprotectedFactory(RR<(RRRR<((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR�scCs�ddlm}ddlm}d|fd��Y}dtfd��Y}|j||d�}|j|j|k�|�}|j|j	j
i|d	6�dS(
Ni����(R(RR
cBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!�s(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
�st_FactorycBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!�s(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sszope.PublicR!(RRRRRRR5tfactoryRR6R(RRRR
R=t	protectedR((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_public_not_already_proxied�s	cCs�ddlm}ddlm}d|fd��Y}dtfd��Y}|j||d�}|j|j|k�|�}|j||�d
g�dS(Ni����(R(tgetTestProxyItemsR
cBseZd�ZRS(cSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!�s(RRR!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR
�sR=cBseZdZd�ZRS(tonecSsdS(N((R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR!�s(RB(RRt	__slots__R!(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sR%R!(sbarstesting(	RRtzope.security.proxyRARRR5R>R(RRRAR
R=R?R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_nonpublic_already_proxied�s	(RRRR@RE(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR;�s		tTest_securityAdapterFactorycBsbeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�ZRS(
cOsddlm}|||�S(Ni����(tsecurityAdapterFactory(RRG(RRRRG((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR�scCs?dtfd��Y}|j|j|dtt�|k�dS(NR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�s(RR5RtNonetFalse(RR=((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt(test_no_permission_untrusted_no_location�scCs?dtfd��Y}|j|j|dtt�|k�dS(NR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sszope.Public(RR5RRI(RR=((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt!test_public_untrusted_no_location�scCsOddlm}dtfd��Y}|j|j||tt�|k�dS(Ni����(RR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�s(RRRR5RRI(RRR=((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt(test_CheckerPublic_untrusted_no_location�scCsXddlm}dtfd��Y}|j|dtt�}|jt||��dS(Ni����(tLocatingUntrustedAdapterFactoryR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sR%(tzope.security.adapterRMRRRIR5t
isinstance(RRMR=R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt$test_protected_untrusted_no_location�scCsXddlm}dtfd��Y}|j|dtt�}|jt||��dS(Ni����(tLocatingTrustedAdapterFactoryR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�s(	RNRQRRRHRItTrueR5RO(RRQR=R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt&test_no_permission_trusted_no_location�scCsXddlm}dtfd��Y}|j|dtt�}|jt||��dS(Ni����(RQR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sszope.Public(RNRQRRRIRRR5RO(RRQR=R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyttest_public_trusted_no_location�scCshddlm}ddlm}dtfd��Y}|j||tt�}|jt	||��dS(Ni����(RQ(RR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�s(
RNRQRRRRRIRRR5RO(RRQRR=R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt&test_CheckerPublic_trusted_no_location�s
cCsXddlm}dtfd��Y}|j|dtt�}|jt||��dS(Ni����(RQR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sR%(RNRQRRRIRRR5RO(RRQR=R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt"test_protected_trusted_no_location�scCsXddlm}dtfd��Y}|j|dtt�}|jt||��dS(Ni����(RQR=cBseZRS((RR(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyR=�sR%(RNRQRRRRR5RO(RRQR=R((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt!test_protected_trusted_w_location�s(RRRRJRKRLRPRSRTRURVRW(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyRF�s									cCsItjtjt�tjt�tjt�tjt�tjt�f�S(N(tunittestt	TestSuitet	makeSuiteRRR(R;RF(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt
test_suite�s(	t__doc__RXtTestCaseRRR(R;RFR[(((sF/usr/lib/python2.7/site-packages/zope/component/tests/test_security.pyt<module>s"<%E

Spamworldpro Mini