Ejemplo n.º 1
0
    def test_index_title_returns_title(self):
        p = Parser()
        html = '<td class="t-title"><div class="t-title"><a>Blah</a></div></td>'
        tid = p.index_title(make_tree(html))

        self.assertEqual(tid, 'Blah')