def test_parse_rubric_from_xml(self, data): xml = etree.fromstring("".join(data['xml'])) rubric = parse_rubric_xml(xml) self.assertEqual(rubric['prompt'], data['prompt']) self.assertEqual(rubric['feedbackprompt'], data['feedbackprompt']) self.assertEqual(rubric['criteria'], data['criteria'])
def test_parse_rubric_from_xml(self, data): xml = etree.fromstring("".join(data["xml"])) rubric = parse_rubric_xml(xml) self.assertEqual(rubric["prompt"], data["prompt"]) self.assertEqual(rubric["feedbackprompt"], data["feedbackprompt"]) self.assertEqual(rubric["criteria"], data["criteria"])