Ejemplo n.º 1
0
    def test_index_tid_returns_tid(self):
        p = Parser()
        html = '<td class="t-title"><div class="t-title"><a data-topic_id="12345"></a></div></td>'
        tid = p.index_tid(make_tree(html))

        self.assertEqual(tid, 12345)