[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Formulator/Widgets/Browser/tests - testBrowserWidget.py:1.1.2.2
Tres Seaver
tseaver@zope.com
Tue, 12 Feb 2002 15:56:31 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/Formulator/Widgets/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv19744/Zope/App/Formulator/Widgets/Browser/tests
Modified Files:
Tag: Zope-3x-branch
testBrowserWidget.py
Log Message:
- Normalize file headers.
- Fix violations of "80 character" rule.
=== Zope3/lib/python/Zope/App/Formulator/Widgets/Browser/tests/testBrowserWidget.py 1.1.2.1 => 1.1.2.2 ===
+#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -6,6 +8,11 @@
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
+##############################################################################
+"""
+
+$Id$
+"""
import unittest
from Zope.App.Formulator import Errors
@@ -58,14 +65,17 @@
def testRendering(self):
self.assertEqual(self._widget.render(),
- '<input type="text" name="field_foo" value="Foo Value" />')
+ '<input type="text" name="field_foo" '
+ 'value="Foo Value" />')
self.assertEqual(self._widget.render_hidden(),
- '<input type="hidden" name="field_foo" value="Foo Value" />')
+ '<input type="hidden" name="field_foo" '
+ 'value="Foo Value" />')
self._widget.extra = '''style="color: red"'''
self.assertEqual(self._widget.render_hidden(),
- '<input type="hidden" name="field_foo" value="Foo Value" style="color: red" />')
+ '<input type="hidden" name="field_foo" '
+ 'value="Foo Value" style="color: red" />')
def test_suite():