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