def test_should_handle_large_tables(self): self.rows[0][0][0] = "a" * 90 output = table.calculate_column_sizes(self.columns, self.rows) self.assertEquals(sum(output), 99)
def test_should_respect_large_cell_items(self): self.rows[0][0][0] = "a" * 30 output = table.calculate_column_sizes(self.columns, self.rows) self.assertEquals(output[0], 31) # adds an extran item to the length
def test_should_equal_at_least_80_characters(self): output = table.calculate_column_sizes(self.columns, self.rows) self.assertEquals(sum(output), 76) # 80 - 4 for the delimiters