示例#1
0
 def test_word_is_less_than_3_chars(self):
     with self.assertRaises(ValidationError):
         game = Game(word="AA")
         game.full_clean()
示例#2
0
 def test_word_is_only_letters(self):
     with self.assertRaises(ValidationError):
         game = Game(word="A1B")
         game.full_clean()
示例#3
0
 def test_word_is_required(self):
     with self.assertRaises(ValidationError):
         game = Game()
         game.full_clean()