def test_exception_type(self, value, expected):
     with pytest.raises(expected):
         sanitize_python_var_name(value)
 def test_normal_reserved(self, value, expected):
     assert sanitize_python_var_name(value) == expected
 def test_normal_invalid_first_char_x2(self, value, replace_text, expected):
     sanitized_name = sanitize_python_var_name(value, replace_text)
     assert sanitized_name == expected
     validate_python_var_name(sanitized_name)
 def test_exception_type(self, value, expected):
     with pytest.raises(expected):
         sanitize_python_var_name(value)
 def test_normal_reserved(self, value, expected):
     assert sanitize_python_var_name(value) == expected
 def test_normal_invalid_first_char_x2(self, value, replace_text, expected):
     sanitized_name = sanitize_python_var_name(value, replace_text)
     assert sanitized_name == expected
     validate_python_var_name(sanitized_name)