示例#1
0
 def test_starts_with_reserved_word(self):
     """_starts_with_reserved_word() interface tests."""
     for w in Deck.ReservedWords.all():
         self.assertTrue(
             Deck._starts_with_reserved_word(
                 '{} is a reserved word'.format(w)
             )
         )
示例#2
0
 def test_does_not_start_with_reserved_word(self):
     """_starts_with_reserved_word() interface tests."""
     self.assertFalse(
         Deck._starts_with_reserved_word('This is not a reserved word.')
     )