

def check_boolean_option(self, name):
    widget = CronWidget(options={
        name: True,
    })
    widget_html = widget.render('timing', '')
    self.assertTrue((name in widget_html))
    widget = CronWidget(options={
        name: False,
    })
    widget_html = widget.render('timing', '')
    self.assertFalse((name in widget_html))

dataset/ETHPy150Open saeedsq/django-fancy-cronfield/fancy_cronfield/tests/test_widgets.py CronWidgetTests.check_boolean_option/original