[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/tests - test_permissionwidget.py:1.4
Jim Fulton
jim@zope.com
Tue, 21 Jan 2003 16:22:04 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/security/tests
In directory cvs.zope.org:/tmp/cvs-serv10458/tests
Modified Files:
test_permissionwidget.py
Log Message:
Changed permission fields to use permission ids, rather than permission objects
=== Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py:1.3 Thu Dec 26 13:50:46 2002
+++ Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py Tue Jan 21 16:22:01 2003
@@ -108,7 +108,7 @@
)
self.assertEqual(
- widget.render(read_permission),
+ widget.render(read_permission.getId()),
out)
self.assertEqual(widget.getData(), None)
@@ -118,7 +118,7 @@
request.form["field.TestName"] = (
'read'
)
- self.assertEqual(widget.getData(), read_permission)
+ self.assertEqual(widget.getData(), read_permission.getId())
self.assertEqual(widget(), out)