Searched refs:ToUnderscore (Results 1 – 3 of 3) sorted by relevance
13 self.assertEqual(camel_case.ToUnderscore('camelCase'), 'camel_case')14 self.assertEqual(camel_case.ToUnderscore('CamelCase'), 'camel_case')15 self.assertEqual(camel_case.ToUnderscore('Camel2Case'), 'camel2_case')16 self.assertEqual(camel_case.ToUnderscore('Camel2Case2'), 'camel2_case2')17 self.assertEqual(camel_case.ToUnderscore('2012Q3'), '2012_q3')22 self.assertEqual(camel_case.ToUnderscore(camel_case_list), underscore_list)47 self.assertEqual(camel_case.ToUnderscore(camel_case_dict), underscore_dict)50 self.assertEqual(camel_case.ToUnderscore(self), self)
12 def ToUnderscore(obj): function22 return [ToUnderscore(item) for item in obj]28 output[ToUnderscore(k)] = ToUnderscore(v)30 output[ToUnderscore(k)] = v
153 key_name = camel_case.ToUnderscore(obj.__name__)