def test_set_question_converts_multiplication_operator_to_entity(self): w = MathCaptchaWidget() w.set_question(2, 4, '*') self.assertHTMLEqual(w.question_html, """ <span class="captcha-question"> What is 2 × 4? </span>""")
def test_set_question(self): w = MathCaptchaWidget() w.set_question(2, 4, 'foo') self.assertHTMLEqual(w.question_html, """ <span class="captcha-question"> What is 2 foo 4? </span>""")
def test_set_question_used_question_class(self): w = MathCaptchaWidget(question_class='question') w.set_question(2, 4, '+') self.assertHTMLEqual(w.question_html, """ <span class="question"> What is 2 + 4? </span>""")
def test_set_question(self): w = MathCaptchaWidget() w.set_question(2, 4, 'foo') self.assertHTMLEqual( w.question_html, """ <span class="captcha-question"> What is 2 foo 4? </span>""")
def test_set_question_used_question_class(self): w = MathCaptchaWidget(question_class='question') w.set_question(2, 4, '+') self.assertHTMLEqual( w.question_html, """ <span class="question"> What is 2 + 4? </span>""")
def test_set_question_converts_multiplication_operator_to_entity(self): w = MathCaptchaWidget() w.set_question(2, 4, '*') self.assertHTMLEqual( w.question_html, """ <span class="captcha-question"> What is 2 × 4? </span>""")
def test_set_question_converts_multiplication_operator_to_entity(self): w = MathCaptchaWidget() w.set_question(2, 4, '*') self.assertHTMLEqual(w.question_html, "What is 2 × 4?")
def test_set_question(self): w = MathCaptchaWidget() w.set_question(2, 4, 'foo') self.assertHTMLEqual(w.question_html, "What is 2 foo 4?")
def test_set_question_converts_multiplication_operator_to_entity(self): w = MathCaptchaWidget() w.set_question(2, 4, '*') self.assertHTMLEqual(w.question_html, "What is 2 × 4?")
def test_set_question(self): w = MathCaptchaWidget() w.set_question(2, 4, 'foo') self.assertHTMLEqual(w.question_html, "What is 2 foo 4?")