Ejemplo n.º 1
0
    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))
Ejemplo n.º 2
0
    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))
Ejemplo n.º 3
0
 def display_hint(answerParts):
     print("hint: " + quizlet.hintify(answerParts[0]))