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

Method test_width_with_full_width_characters

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

Source from the content-addressed store, hash-verified

67 self.assertEqual(widths, [13, 14, 14])
68
69 def test_width_with_full_width_characters(self):
70 self.section.add_row(['\u4e00', 'one'])
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'])

Callers

nothing calls this directly

Calls 2

add_rowMethod · 0.45

Tested by

no test coverage detected