コード例 #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
ファイル: test_utils.py プロジェクト: tahoemph/flask-restplus
 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
ファイル: test_utils.py プロジェクト: tahoemph/flask-restplus
 def test_no_transform(self):
     self.assertEqual(utils.camel_to_dash('test'), 'test')