Home
last modified time | relevance | path

Searched refs:ToUnderscore (Results 1 – 3 of 3) sorted by relevance

/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcamel_case_unittest.py13 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)
Dcamel_case.py8 def ToUnderscore(obj): function
18 return [ToUnderscore(item) for item in obj]
24 output[ToUnderscore(k)] = ToUnderscore(v)
26 output[ToUnderscore(k)] = v
Ddiscover.py155 key_name = camel_case.ToUnderscore(obj.__name__)