def test_normal_multibyte(self, value, expected): sanitize_excel_sheet_name(value)
def test_exception_type(self, value, expected): with pytest.raises(expected): sanitize_excel_sheet_name(value)
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)