1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Refs #25300 -- Fixed reference to TextInput in a test.

This commit is contained in:
Moritz Sichert 2015-09-09 15:14:07 +02:00 committed by Tim Graham
parent f2f8972def
commit dae81c6ec6

View File

@ -2301,8 +2301,8 @@ class FormsTestCase(SimpleTestCase):
unless it is `None`.
"""
class SomeForm(Form):
field = CharField(widget=forms.TextInput(attrs={'id': 'myCustomID'}))
field_none = CharField(widget=forms.TextInput(attrs={'id': None}))
field = CharField(widget=TextInput(attrs={'id': 'myCustomID'}))
field_none = CharField(widget=TextInput(attrs={'id': None}))
form = SomeForm()
self.assertEqual(form['field'].id_for_label, 'myCustomID')