mò #á¸Ec@s©dZdZddd!ZdkZdklZdkZdkZdeifd„ƒYZ d e fd „ƒYZ d e fd „ƒYZ d e fd„ƒYZ d„Z dS(spTests for the DeprecationWarning thrown by accessing hasRole To be removed together with the API in due time. sB$Id: testDeprecatedAPI.py 40218 2005-11-18 14:39:19Z andreasjung $s$Revision: 1.6 $i iþÿÿÿN(sUsert DeprecatedAPIcBs,tZd„Zd„Zd„Zd„ZRS(NcCs*ti|_tiddtddƒdS(Nterrortcategorytmodulet AccessControl(twarningstfilterstselftoriginal_warning_filterstfilterwarningstDeprecationWarning(R((tD/data/zmath/zope/lib/python/AccessControl/tests/testDeprecatedAPI.pytsetUps cCs|iti(dS(N(RRRR(R((R ttearDown$scCs;y|iidƒWntj onX|idƒdS(Ns'Expected DeprecationWarning, none given(Rt userObjectthasRoletNoneR tfail(R((R ttestDeprecatedHasRole's cCs;y|iidƒWn tj o|idƒnXdS(Ns8Unexpected DeprecationWarning, no warnings expected here(RRtallowedRR R(R((R t testAllowed0s(t__name__t __module__R R RR(((R Rs  t BasicUsercBs tZeiddggƒZRS(NtJoeBloket123(RRtUsert SimpleUserR(((R R:stUnrestrictedUsercBs tZeiddggƒZRS(NtSpecialR(RRRRR(((R R=stNullUnrestrictedUsercBstZeiƒZRS(N(RRRRR(((R R@scCsRtiƒ}|ititƒƒ|ititƒƒ|ititƒƒ|S(N(tunittestt TestSuitetsuitetaddTestt makeSuiteRRR(R!((R t test_suiteCs  (t__doc__t __rcs_id__t __version__tZODBRRRRtTestCaseRRRRR$( RRRR&R(RRR$RR'R((R t?s