1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Rewrote form widget tests as proper unittests.

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.
This commit is contained in:
Preston Timmons
2015-08-30 21:13:42 -05:00
parent 5153a3bfdc
commit 4c30fa905d
26 changed files with 2270 additions and 1825 deletions

View File

@@ -0,0 +1,10 @@
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" />')