def test__short__should_return_an_unordered_list(self): hf1 = HTMLFormatter(self.record_list) doc = ElementTree.fromstring(hf1.short()) self.assertEqual(doc.tag, 'ul') self.assertEqual(len(doc.getchildren()), 2)