[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form/tests - test_passwordwidget.py:1.4

Steve Alexander steve@cat-box.net
Mon, 24 Feb 2003 09:51:14 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/form/tests
In directory cvs.zope.org:/tmp/cvs-serv16959/src/zope/app/browser/form/tests

Modified Files:
	test_passwordwidget.py 
Log Message:
Made the password widget not be filled in with data.


=== Zope3/src/zope/app/browser/form/tests/test_passwordwidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/form/tests/test_passwordwidget.py:1.3	Wed Jan 15 10:44:33 2003
+++ Zope3/src/zope/app/browser/form/tests/test_passwordwidget.py	Mon Feb 24 09:50:44 2003
@@ -36,15 +36,11 @@
     def testRender(self):
         value = 'Foo Value'
         check_list = ('type="password"', 'id="field.foo"',
-                      'name="field.foo"', 'value="Foo Value"', 'size="20"')
+                      'name="field.foo"', 'value=""', 'size="20"')
         self._verifyResult(self._widget.render(value), check_list)
-        check_list = ('type="hidden"',) + check_list[1:-1]
-        self._verifyResult(self._widget.renderHidden(value), check_list)
-        check_list = ('style="color: red"',) + check_list
-        self._widget.extra = 'style="color: red"'
-        self._verifyResult(self._widget.renderHidden(value), check_list)
-
 
+    def testHidden(self):
+        self.assertRaises(NotImplementedError, self._widget.hidden)
 
 def test_suite():
     return makeSuite(PasswordWidgetTest)