Exemplo n.º 1
0
 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),
     )
Exemplo n.º 2
0
 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))
Exemplo n.º 3
0
 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))
Exemplo n.º 4
0
 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))