Esempio n. 1
0
 def test_error(self):
     _form = TestForm()
     _form.validate()
     _renderer = Renderer(_form, 'bootstrap')
     self.assertIn('form-group has-error', _renderer.field('text'))
Esempio n. 2
0
 def test_error(self):
     _form = TestForm()
     _form.validate()
     _renderer = Renderer(_form, 'bootstrap')
     self.assertIn('form-group has-error', _renderer.field('text'))
Esempio n. 3
0
 def test_bootstrap(self):
     _renderer = Renderer(form, 'bootstrap')
     self.assertIn('form-group', _renderer.field('text'))
     self.assertNotIn('form-group has-error', _renderer.field('text'))
Esempio n. 4
0
 def test_bootstrap(self):
     _renderer = Renderer(form, 'bootstrap')
     self.assertIn('form-group', _renderer.field('text'))
     self.assertNotIn('form-group has-error', _renderer.field('text'))