[Zope3-checkins] CVS: Zope3/src/zope/app/security/tests - test_permissionfield.py:1.4

Jim Fulton jim@zope.com
Tue, 21 Jan 2003 16:21:49 -0500


Update of /cvs-repository/Zope3/src/zope/app/security/tests
In directory cvs.zope.org:/tmp/cvs-serv10423/tests

Modified Files:
	test_permissionfield.py 
Log Message:
Changed permission fields to use permission ids, rather than permission objects

=== Zope3/src/zope/app/security/tests/test_permissionfield.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/security/tests/test_permissionfield.py:1.3	Thu Dec 26 13:49:09 2002
+++ Zope3/src/zope/app/security/tests/test_permissionfield.py	Tue Jan 21 16:21:47 2003
@@ -35,7 +35,7 @@
         field = PermissionField()
         self.assertRaises(ValidationError, field.validate, dummy)
         permissionRegistry.definePermission('read', 'Read', 'Read something')
-        field.validate(permissionRegistry.getPermission('read'))
+        field.validate(permissionRegistry.getPermission('read').getId())
 
 def test_suite():
     return TestSuite((makeSuite(TestPermissionField),))