[Zope-Checkins] CVS: Zope/lib/python/AccessControl/tests -
testZopeSecurityPolicy.py:1.6.2.3
Tres Seaver
tseaver at zope.com
Mon Jan 12 18:56:48 EST 2004
Update of /cvs-repository/Zope/lib/python/AccessControl/tests
In directory cvs.zope.org:/tmp/cvs-serv31725/lib/python/AccessControl/tests
Modified Files:
Tag: Zope-2_7-branch
testZopeSecurityPolicy.py
Log Message:
- Merge test for UnicodeType NameError bug from 2.6 branch.
=== Zope/lib/python/AccessControl/tests/testZopeSecurityPolicy.py 1.6.2.2 => 1.6.2.3 ===
--- Zope/lib/python/AccessControl/tests/testZopeSecurityPolicy.py:1.6.2.2 Thu Jan 8 18:33:44 2004
+++ Zope/lib/python/AccessControl/tests/testZopeSecurityPolicy.py Mon Jan 12 18:56:47 2004
@@ -300,6 +300,10 @@
self.assertPolicyAllows(subitem, 'setuid_m')
self.assertPolicyAllows(subitem, 'dangerous_m')
+ def testUnicodeName(self):
+ policy = self.policy
+ assert policy.validate('', '', u'foo', '', None)
+
if 0:
# This test purposely generates a log entry.
# Enable it if you don't mind it adding to the log.
More information about the Zope-Checkins
mailing list