def test_create_simple_header_row(self): table = Table() table.create_simple_header_row("Col 1", "Col 2") assert_equal( "<table><thead><tr><th>Col 1</th><th>Col 2</th></tr>" "</thead></table>", str(table), )
def test_create_simple_header_row__returned_row(self): table = Table() row = table.create_simple_header_row() row.id = "test-id" assert_equal('<table><thead><tr id="test-id"></tr></thead></table>', str(table))
def test_create_simple_header_row(self): table = Table() table.create_simple_header_row("Col 1", "Col 2") assert_equal("<table><thead><tr><th>Col 1</th><th>Col 2</th></tr>" "</thead></table>", str(table))