Ejemplo n.º 1
0
    def test_parse_index_table_returns_all_rows(self):
        row = '<tr class="tCenter hl-tr"></tr>'
        html = '<table id="tor-tbl">' + row * 10 + '</table>'
        p = Parser()

        rows = p.parse_index_table(html)

        self.assertEqual(len(rows), 10)