Exemplo n.º 1
0
    def test_show_status(self):
        hangman = Hangman("word")
        self.assertTrue(hangman.show_status() == "____")

        hangman.take_guess("w")

        self.assertTrue(hangman.show_status() == "w___")
Exemplo n.º 2
0
 def test_take_guess(self):
     hangman = Hangman("word")
     self.assertTrue(hangman.take_guess("w"))
     self.assertFalse(hangman.take_guess("t"))