Пример #1
0
 def test_render(self):
     button = SubmitButtonField(button_text='Look up name')
     html = button.widget.render('lookup', None)
     self.assertIn("Look up name", html)
Пример #2
0
 class SubmittableForm(forms.Form): 
     lookup = SubmitButtonField(button_text='Look up name')