Example #1
0
 def test_parse_question_xml_errors(self, data):
     xml = etree.fromstring("".join(data['xml']))
     with self.assertRaises(ValidationError):
         parse_question_xml(xml)
Example #2
0
 def test_parse_question_xml_errors(self, data):
     xml = etree.fromstring("".join(data['xml']))
     with self.assertRaises(ValidationError):
         parse_question_xml(xml)
Example #3
0
    def test_parse_question_xml(self, data):
        xml = etree.fromstring("".join(data['xml']))
        result = parse_question_xml(xml)

        self.assertEqual(result, data['expect'])
Example #4
0
    def test_parse_question_xml(self, data):
        xml = etree.fromstring("".join(data['xml']))
        result = parse_question_xml(xml)

        self.assertEqual(result, data['expect'])