Fix case_conversion doctest
@@ -5,9 +5,9 @@ all_cap_re = re.compile('([a-z0-9])([A-Z])')
def _to_camel_case_name(name):
"""
- >>> _get_camel_case_name("snake_case_name")
+ >>> _to_camel_case_name("snake_case_name")
'snakeCaseName'
- >>> _get_camel_case_name("camelCaseName")
+ >>> _to_camel_case_name("camelCaseName")
'camelCaseName'
"""
first, *rest = name.split('_')
@@ -15,9 +15,9 @@ def _to_camel_case_name(name):
def _to_snake_case_name(name):
"""
- >>> _get_snake_case_name("camelCaseName")
+ >>> _to_snake_case_name("camelCaseName")
'camel_case_name'
- >>> _get_snake_case_name("snake_case_name")
+ >>> _to_snake_case_name("snake_case_name")
'snake_case_name'
"""
s1 = first_cap_re.sub(r'\1_\2', name)
