mirror of
https://github.com/django/django.git
synced 2024-11-18 15:34:16 +00:00
4c30fa905d
This is preparation for landing the template-based widget rendering patch and goes a long way to making these tests more useful for future development. The old doctest heritage is strong here.
11 lines
254 B
Python
11 lines
254 B
Python
from django.forms import HiddenInput
|
|
|
|
from .base import WidgetTest
|
|
|
|
|
|
class HiddenInputTest(WidgetTest):
|
|
widget = HiddenInput()
|
|
|
|
def test_render(self):
|
|
self.check_html(self.widget, 'email', '', html='<input type="hidden" name="email" />')
|