'Tests to confirm that invalid XML throws errors during xblock creation,
so as not to allow bad data into modulestore.'

def test_invalid_xml_handling(self):

    sample_invalid_xml = textwrap.dedent("\n                                                <problem>\n                                                </proble-oh    no    my    finger    broke    and    I    can't    close    the    problem    tag    properly...\n                                ")
    with self.assertRaises(etree.XMLSyntaxError):
        self._create_descriptor(sample_invalid_xml, name='Invalid    XML')
