[Zope3-checkins] CVS: Zope3/src/zope/security/tests - test_checker.py:1.7.10.3
Steve Alexander
steve@cat-box.net
Thu, 15 May 2003 10:49:37 -0400
Update of /cvs-repository/Zope3/src/zope/security/tests
In directory cvs.zope.org:/tmp/cvs-serv12712/src/zope/security/tests
Modified Files:
Tag: stevea-decorators-branch
test_checker.py
Log Message:
More work on Decorators.
Converted existing tests to use decorators instead of ZopeContainerAdapter.
=== Zope3/src/zope/security/tests/test_checker.py 1.7.10.2 => 1.7.10.3 ===
--- Zope3/src/zope/security/tests/test_checker.py:1.7.10.2 Wed May 14 09:54:13 2003
+++ Zope3/src/zope/security/tests/test_checker.py Thu May 15 10:49:36 2003
@@ -19,6 +19,7 @@
from unittest import TestCase, TestSuite, main, makeSuite
from zope.interface import implements
+from zope.interface.verify import verifyObject
from zope.security.checker import Checker, NamesChecker, CheckerPublic
from zope.testing.cleanup import CleanUp
from zope.security.interfaces import ISecurityPolicy
@@ -438,6 +439,13 @@
c = self.originalChecker
dc = DecoratedChecker(c, self.decorationGetMap, self.decorationSetMap)
self.checkingTestImpl(c, dc)
+
+ def test_interface(self):
+ from zope.security.checker import DecoratedChecker
+ from zope.security.interfaces import IChecker
+ c = self.originalChecker
+ dc = DecoratedChecker(c, {}, {})
+ verifyObject(IChecker, dc)
def test_suite():