Ejemplo n.º 1
0
    def test_addRowAndCell(self):
        """
		Tests adding one Row with one Cell."""
        from lib.table import Table, Row, Cell
        cell = Cell()
        row = Row()
        table = Table()
        table.test = "addRowAndCellTest"
        cell.text = "Test"
        row.addCell(cell)
        table.addRow(
            row)  #NOTE: BUG found: does something to trip up tableHasRows.
        textFoundInTableCell = table.rows[0].cells[0].text
        self.assertEqual(textFoundInTableCell, "Test")
        dprint("Table address:", table)