Workout With Friends
Stay fit with a little motivation
 All Classes Namespaces Files Functions Variables Properties
test_forms.py
Go to the documentation of this file.
1 from __future__ import unicode_literals
2 from wowf.tests import BaseUnitTestCase
3 
4 
6 
7  Form = None
8  invalid_data = []
9  valid_data = []
10 
11  def setup_db(self):
12  pass
13 
14  def test_validation(self):
15  for data in self.invalid_data:
16  form = self.Form(**data)
17  self.assertFalse(form.validate())
18  for data in self.valid_data:
19  form = self.Form(**data)
20  self.assertTrue(form.validate())
21