예제 #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'