Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)