def testWidgetLabel(self): # Test the widget label method output = S3SearchMinMaxWidget.widget_label(dict(name="wname", label="wlabel")) self.assertEqual(str(output), str(LABEL("wlabel", _for="id-wname")))
def testWidgetInput(self): # Test the widget label method output = S3SearchMinMaxWidget.widget_input( dict(name="wname", label="wlabel", requires="", attributes=dict(_class="wclass")) ) self.assertEqual(str(output), str(INPUT(_name="wname", _id="id-wname", _class="wclass")))
def testWidgetInput(self): # Test the widget label method output = S3SearchMinMaxWidget.widget_input(dict(name="wname", label="wlabel", requires="", attributes=dict(_class="wclass"))) self.assertEqual(str(output), str(INPUT(_name="wname", _id="id-wname", _class="wclass")))