Пример #1
0
 def test_normal_multibyte(self, value, expected):
     sanitize_excel_sheet_name(value)
Пример #2
0
 def test_exception_type(self, value, expected):
     with pytest.raises(expected):
         sanitize_excel_sheet_name(value)
Пример #3
0
 def test_normal(self, value, replace_text, expected):
     sanitized_name = sanitize_excel_sheet_name(value, replace_text)
     assert sanitized_name == expected
     validate_excel_sheet_name(sanitized_name)