

def test_constructor_attrs(self):
    self.maxDiff = None
    widget = CronWidget(attrs={
        'id': 'id_timing',
        'class': 'fun',
    })
    html = '<input data-fancy="cron" type="hidden" name="timing"'
    html += ' id="id_timing" data-allow_multiple_dom="1"'
    html += ' data-allow_multiple_dow="1" data-allow_multiple_hour="1"'
    html += ' data-allow_multiple_minute="1" data-allow_multiple_month="1"'
    html += ' data-use_gentle_select="1" class="fun"/>'
    self.check_html(widget=widget, name='timing', value='', html=widget)

dataset/ETHPy150Open saeedsq/django-fancy-cronfield/fancy_cronfield/tests/test_widgets.py CronWidgetTests.test_constructor_attrs/VarMisuse@75/194 `html`->`widget`