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), )
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))
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))
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))