Пример #1
0
    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")))
Пример #2
0
    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")))
Пример #3
0
    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")))