Ejemplo n.º 1
0
 def test_normal(self, value, ascii_char_width, expected):
     dp = DataProperty(value)
     assert dp.get_padding_len(ascii_char_width) == expected
Ejemplo n.º 2
0
 def test_normal_east_asian_ambiguous_width(self, value, ascii_char_width,
                                            ambiguous_width, expected):
     dp = DataProperty(value, east_asian_ambiguous_width=ambiguous_width)
     assert dp.get_padding_len(ascii_char_width) == expected
Ejemplo n.º 3
0
 def test_normal_east_asian_ambiguous_width(
     self, value, ascii_char_width, ambiguous_width, expected
 ):
     dp = DataProperty(value, east_asian_ambiguous_width=ambiguous_width)
     assert dp.get_padding_len(ascii_char_width) == expected