diff --git a/tests/forms_tests/widget_tests/test_widget.py b/tests/forms_tests/widget_tests/test_widget.py
index 595748a..6ba78c9 100644
a
|
b
|
|
1 | 1 | from __future__ import unicode_literals |
2 | 2 | |
3 | 3 | from django.forms import Widget |
4 | | from django.forms.widgets import Input |
| 4 | from django.forms.widgets import Input, TextInput |
5 | 5 | |
6 | 6 | from .base import WidgetTest |
7 | 7 | |
… |
… |
class WidgetTests(WidgetTest):
|
15 | 15 | |
16 | 16 | def test_no_trailing_newline_in_attrs(self): |
17 | 17 | self.check_html(Input(), 'name', 'value', strict=True, html='<input type="None" name="name" value="value" />') |
| 18 | |
| 19 | def test_type_passed(self): |
| 20 | attrs = {'type': 'date'} |
| 21 | self.check_html(TextInput(attrs), 'name', 'value', strict=True, html=( |
| 22 | '<input type="date" name="name" value="value" />' |
| 23 | )) |
| 24 | self.check_html(TextInput(attrs), 'name', 'value', strict=True, html=( |
| 25 | '<input type="date" name="name" value="value" />' |
| 26 | )) |