コード例 #1
0
 def test_snakeize_revert(self):
     assert pascalize(snakeize('VarName')) == 'VarName'
コード例 #2
0
 def test_camelize_revert(self):
     assert pascalize(camelize('CurrentThread')) == 'CurrentThread'
コード例 #3
0
 def test_kebabize_revert(self):
     assert pascalize(kebabize('LongUrlPath')) == 'LongUrlPath'
コード例 #4
0
 def test_camelcase_and_acronyms(self):
     assert pascalize('currentThread',
                      acronyms=['THREAD']) == 'CurrentTHREAD'
コード例 #5
0
 def test_pascalcase_and_acronyms(self):
     assert pascalize('StringIO', acronyms=['IO']) == 'StringIO'
コード例 #6
0
 def test_pascalize_revert(self):
     assert kebabize(pascalize('string-io')) == 'string-io'
コード例 #7
0
 def test_kebabcase_and_acronyms(self):
     assert pascalize('long-url-path', acronyms=['URL']) == 'LongURLPath'
コード例 #8
0
 def test_dunder_name(self):
     assert pascalize('__dunder_name__') == '__DunderName__'
コード例 #9
0
 def test_lowercase_and_acronyms(self):
     assert pascalize('stringio', acronyms=['IO']) == 'StringIO'
コード例 #10
0
 def test_pascalcase(self):
     assert pascalize('StringIO') == 'StringIo'
コード例 #11
0
 def test_protected_name(self):
     assert pascalize('_protected_name') == '_ProtectedName'
コード例 #12
0
 def test_camelcase(self):
     assert pascalize('currentThread') == 'CurrentThread'
コード例 #13
0
 def test_kebabcase(self):
     assert pascalize('long-url-path') == 'LongUrlPath'
コード例 #14
0
 def test_pascalize_revert(self):
     assert camelize(pascalize('stringIo')) == 'stringIo'
コード例 #15
0
 def test_lowercase(self):
     assert pascalize('stringio') == 'Stringio'
コード例 #16
0
 def test_snakecase_and_acronyms(self):
     assert pascalize('var_name', acronyms=['VA']) == 'VARName'
コード例 #17
0
 def test_snakecase(self):
     assert pascalize('var_name') == 'VarName'
コード例 #18
0
 def test_pascalize_revert(self):
     assert snakeize(pascalize('string_io')) == 'string_io'