Пример #1
0
 def test_camel_to_underscore(self):
     """Test utils.codify.camel_to_underscore"""
     input_str = ['TheNameToConvert', 'Some12Variable_Name']
     output_str = ['the_name_to_convert', 'some12_variable__name']
     for in_str, out_str in zip(input_str, output_str):
         assert out_str == camel_to_underscore(in_str)
Пример #2
0
 def test_camel_to_underscore(self):
     """Test utils.codify.camel_to_underscore"""
     input_str = ['TheNameToConvert', 'Some12Variable_Name']
     output_str = ['the_name_to_convert', 'some12_variable__name']
     for in_str, out_str in zip(input_str, output_str):
         assert camel_to_underscore(in_str) == out_str