[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security/Grants/tests - testPersistentLocalSecurityMap.py:1.1
Florent Guillaume
fg@nuxeo.com
Mon, 24 Jun 2002 07:19:22 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/Grants/tests
In directory cvs.zope.org:/tmp/cvs-serv30684/tests
Added Files:
testPersistentLocalSecurityMap.py
Log Message:
New Persistent LocalSecurityMap that uses PersistentMapping,
with somewhat empty tests.
The previous checkin uses those.
=== Added File Zope3/lib/python/Zope/App/Security/Grants/tests/testPersistentLocalSecurityMap.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
#############################################################################
import unittest
from Interface.Verify import verifyClass
from Zope.App.Security.Grants.ILocalSecurityMap import ILocalSecurityMap
from Zope.App.Security.Grants.PersistentLocalSecurityMap import PersistentLocalSecurityMap
from Zope.App.Security.Grants.tests.testLocalSecurityMap import \
TestLocalSecurityMap
class TestPersistentLocalSecurityMap(TestLocalSecurityMap):
def testInterface(self):
verifyClass(ILocalSecurityMap, PersistentLocalSecurityMap)
# XXX test persistence...
def test_suite():
loader = unittest.TestLoader()
return loader.loadTestsFromTestCase(TestPersistentLocalSecurityMap)
if __name__ == '__main__':
unittest.main()