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

Steve Alexander steve@cat-box.net
Mon, 6 Jan 2003 09:49:43 -0500


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

Modified Files:
	test_interfacewidget.py 
Log Message:
Made clear which methods of the IBrowserWidget are deprecated.
Added tests for MultiInterfaceWidget's row() and label() methods.


=== Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py:1.3	Sun Jan  5 13:56:50 2003
+++ Zope3/src/zope/app/browser/component/tests/test_interfacewidget.py	Mon Jan  6 09:49:09 2003
@@ -229,6 +229,12 @@
         '</select>'
         )
         self.assertEqual(widget(), out)
+        label = '<label for="field.TestName">This is a test</label>'
+        self.assertEqual(widget.label(), label)
+        self.assertEqual(widget.row(),
+                         '<td>%s</td><td>%s</td>' % (label, out)
+                         )
+
 
 
 class TestInterfaceWidget(BaseInterfaceWidgetTest):