MCPcopy Create free account
hub / github.com/aws/aws-cli / test_max_width_scaling_is_negative

Method test_max_width_scaling_is_negative

tests/unit/test_table.py:73–76  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 self.assertEqual(self.section.calculate_column_widths(), [2, 3])
72
73 def test_max_width_scaling_is_negative(self):
74 self.section.add_row(['12345', '12345'])
75 widths = self.section.calculate_column_widths(max_width=17)
76 self.assertEqual(widths, [8, 9])
77
78 def test_allow_sections_to_be_padded(self):
79 self.section.add_row(['one', 'two', 'three'])

Callers

nothing calls this directly

Calls 2

add_rowMethod · 0.45

Tested by

no test coverage detected