def test_normal(self, value, ascii_char_width, expected): dp = DataProperty(value) assert dp.get_padding_len(ascii_char_width) == expected
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
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