def test_should_return_html_for_multi_choice_answer_question(self): actual = Question.multi_choice("question", "a1", "a2") expected = '''\ <div id="1"> question <input type=checkbox id="1_1">a1</input><input type=checkbox name="1_2">a2</input> </div> ''' self.assertEquals(HTMLReader(expected).to_s(), HTMLReader(actual).to_s())