def test_render(self): button = SubmitButtonField(button_text='Look up name') html = button.widget.render('lookup', None) self.assertIn("Look up name", html)
class SubmittableForm(forms.Form): lookup = SubmitButtonField(button_text='Look up name')