Ticket #4341: tests.py
File tests.py, 444 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | from django.test import TestCase |
2 | from django.forms.extras import SelectDateWidget |
3 | |
4 | |
5 | class SimpleTest(TestCase): |
6 | def test_select_date_widget_attrs(self): |
7 | """ |
8 | Ticket #4341 |
9 | Tests that the select date widget adds attrs like other widgets. |
10 | """ |
11 | date_widget = SelectDateWidget(attrs={'class': 'test-class'}) |
12 | self.assert_( |
13 | 'test-class' in date_widget.render(name='Test', value=None)) |