[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security/tests - test_permissionwidget.py:1.11
Jim Fulton
jim@zope.com
Thu, 22 May 2003 18:50:10 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/security/tests
In directory cvs.zope.org:/tmp/cvs-serv12744/src/zope/app/browser/security/tests
Modified Files:
test_permissionwidget.py
Log Message:
Deprecated the browser widget render and renderHidden methods.
=== Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py:1.10 Wed Apr 30 19:37:55 2003
+++ Zope3/src/zope/app/browser/security/tests/test_permissionwidget.py Thu May 22 18:50:09 2003
@@ -106,9 +106,8 @@
'</select>'
)
- self.assertEqual(
- widget.render(read_permission.getId()),
- out)
+ widget.setData(read_permission.getId())
+ self.assertEqual(widget(), out)
self.assertEqual(widget.getData(), None)
@@ -187,7 +186,8 @@
'</select>'
)
- self.assertEqual(widget.render(CheckerPublic), out)
+ widget.setData(CheckerPublic)
+ self.assertEqual(widget(), out)
self.assertEqual(widget.getData(), None)