Ejemplo n.º 1
0
 def test_create_simple_row(self):
     table = Table()
     table.create_simple_row("Col 1", "Col 2")
     assert_equal(
         "<table><tbody><tr><td>Col 1</td><td>Col 2</td></tr>"
         "</tbody></table>",
         str(table),
     )
Ejemplo n.º 2
0
 def test_create_simple_row__returned_row(self):
     table = Table()
     row = table.create_simple_row()
     row.id = "test-id"
     assert_equal('<table><tbody><tr id="test-id"></tr></tbody></table>',
                  str(table))
Ejemplo n.º 3
0
 def test_create_simple_row(self):
     table = Table()
     table.create_simple_row("Col 1", "Col 2")
     assert_equal("<table><tbody><tr><td>Col 1</td><td>Col 2</td></tr>"
                  "</tbody></table>", str(table))
Ejemplo n.º 4
0
 def test_create_simple_row__returned_row(self):
     table = Table()
     row = table.create_simple_row()
     row.id = "test-id"
     assert_equal('<table><tbody><tr id="test-id"></tr></tbody></table>',
                  str(table))