def test_hintify(self): answerParts = ["* t [keyword1] [key word two] t", "* t [keyword3] t"] answerPart = answerParts[0] self.assertEqual("* t [k_______] [k__ w___ t__] t", quizlet.hintify(answerPart)) answerPart = answerParts[1] self.assertEqual("* t [k_______] t", quizlet.hintify(answerPart))
def display_hint(answerParts): print("hint: " + quizlet.hintify(answerParts[0]))