mirror of
https://github.com/Hopiu/django.git
synced 2026-03-18 15:00:25 +00:00
9 lines
213 B
Python
9 lines
213 B
Python
from django import forms
|
|
|
|
|
|
class FormFieldAssertionsMixin:
|
|
|
|
def assertWidgetRendersTo(self, field, to):
|
|
class Form(forms.Form):
|
|
f = field
|
|
self.assertHTMLEqual(str(Form()['f']), to)
|