Example #1
0
 def test_name_required(self):
     f1 = HeroForm()
     f2 = HeroForm(name='')
     self.assertFalse(f1.validate())
     self.assertFalse(f2.validate())
Example #2
0
 def test_alias_required(self):
     f1 = HeroForm()
     f2 = HeroForm(alias='')
     self.assertFalse(f1.validate())
     self.assertFalse(f2.validate())