def test_it_is_possible_to_add_many_lines_on_header(self):
     table = Table()
     table.add_cell_on_header('x')
     table.add_cell_on_header('y')
     table.start_header_line()
     table.add_cell_on_header('z')
     self.assertEquals('<table><thead><tr><th>x</th><th>y</th></tr><tr><th>z</th></tr></thead><tbody></tbody></table>', table.as_html())
 def test_it_is_possible_to_add_cells_on_header_without_starting_a_new_line(self):
     table = Table()
     table.add_cell_on_header('x')
     self.assertEquals('<table><thead><tr><th>x</th></tr></thead><tbody></tbody></table>', table.as_html())
 def test_it_is_possible_to_add_cells_on_header_in_a_line_that_was_created(self):
     table = Table()
     table.start_header_line()
     table.add_cell_on_header('x')
     self.assertEquals('<table><thead><tr><th>x</th></tr></thead><tbody></tbody></table>', table.as_html())