示例#1
0
 def test_transform(self):
     tests = {
         'aValue': 'a_value',
         'aLongValue': 'a_long_value',
         'Upper': 'upper',
         'UpperCase': 'upper_case',
     }
     for value, expected in tests.items():
         self.assertEqual(utils.camel_to_dash(value), expected)
示例#2
0
 def test_transform(self):
     tests = {
         'aValue': 'a_value',
         'aLongValue': 'a_long_value',
         'Upper': 'upper',
         'UpperCase': 'upper_case',
     }
     for value, expected in tests.items():
         self.assertEqual(utils.camel_to_dash(value), expected)
示例#3
0
 def test_no_transform(self):
     self.assertEqual(utils.camel_to_dash('test'), 'test')
示例#4
0
 def test_no_transform(self):
     self.assertEqual(utils.camel_to_dash('test'), 'test')