Ejemplo n.º 1
0
 def test_apple(self):
     apples = WordFinder.find_word("apple")
     self.assertIn("The wood of the apple tree.", apples)
Ejemplo n.º 2
0
 def test_nonexisting_word(self):
     match = WordFinder.find_word("asdsadasdsadadadasd")
     self.assertEqual("The word doesn't exist", match)
Ejemplo n.º 3
0
 def test_texas_mixed(self):
     texas = WordFinder.find_word("tExAs")
     self.assertIn(
         "The 28th state of the United States of America, "
         "located in the southern US.",
         texas)
Ejemplo n.º 4
0
 def test_nonexisting_apples(self, input):
     apples = WordFinder.find_word("apples")
     self.assertEqual("The word doesn't exist", apples)