[Zope3-checkins] CVS: Zope3/src/zope/app/contentdirective/tests - modulehookup.py:1.3 test_requirepermissions.py:1.3
Jim Fulton
jim@zope.com
Tue, 21 Jan 2003 16:35:26 -0500
Update of /cvs-repository/Zope3/src/zope/app/contentdirective/tests
In directory cvs.zope.org:/tmp/cvs-serv12330/tests
Modified Files:
modulehookup.py test_requirepermissions.py
Log Message:
Changed set_schema to omit readonly attributes
=== Zope3/src/zope/app/contentdirective/tests/modulehookup.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/contentdirective/tests/modulehookup.py:1.2 Wed Dec 25 09:12:49 2002
+++ Zope3/src/zope/app/contentdirective/tests/modulehookup.py Tue Jan 21 16:35:23 2003
@@ -38,6 +38,7 @@
class S(Interface):
foo = Text()
bar = Text()
+ baro = Text(readonly=True)
module.I = I
=== Zope3/src/zope/app/contentdirective/tests/test_requirepermissions.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/contentdirective/tests/test_requirepermissions.py:1.2 Wed Dec 25 09:12:49 2002
+++ Zope3/src/zope/app/contentdirective/tests/test_requirepermissions.py Tue Jan 21 16:35:23 2003
@@ -139,6 +139,7 @@
self.assertEqual(checker.setattr_permission_id('m3'), None)
self.assertEqual(checker.setattr_permission_id('foo'), P1)
self.assertEqual(checker.setattr_permission_id('bar'), P1)
+ self.assertEqual(checker.setattr_permission_id('baro'), None)
def testSimpleInterface(self):
declaration = ("""<content class="%s">