Пример #1
0
 def test_snakecase(self):
     assert kebabize('var_name') == 'var-name'
Пример #2
0
 def test_pascalize_revert(self):
     assert kebabize(pascalize('string-io')) == 'string-io'
Пример #3
0
 def test_lowercase(self):
     assert kebabize('stringio') == 'stringio'
Пример #4
0
 def test_camelize_revert(self):
     assert kebabize(camelize('current-thread')) == 'current-thread'
Пример #5
0
 def test_snakeize_revert(self):
     assert kebabize(snakeize('var-name')) == 'var-name'
Пример #6
0
 def test_kebabcase(self):
     assert kebabize('long-url-path') == 'long-url-path'
Пример #7
0
 def test_pascalcase_and_acronyms(self):
     assert kebabize('StringIO', acronyms=['IO']) == 'string-io'
Пример #8
0
 def test_snakecase_and_acronyms(self):
     assert kebabize('var_name', acronyms=['VA']) == 'va-r-name'
Пример #9
0
 def test_kebabcase_and_acronyms(self):
     assert kebabize('long-url-path', acronyms=['URL']) == 'long-url-path'
Пример #10
0
 def test_dunder_name(self):
     assert kebabize('__dunderName__') == '__dunder-name__'
Пример #11
0
 def test_lowercase_and_acronyms(self):
     assert kebabize('stringio', acronyms=['IO']) == 'string-io'
Пример #12
0
 def test_protected_name(self):
     assert kebabize('_protectedName') == '_protected-name'
Пример #13
0
 def test_pascalcase(self):
     assert kebabize('StringIO') == 'string-io'
Пример #14
0
 def test_camelcase(self):
     assert kebabize('currentThread') == 'current-thread'
Пример #15
0
 def test_kebabize_revert(self):
     assert camelize(kebabize('varName')) == 'varName'
Пример #16
0
 def test_camelcase_and_acronyms(self):
     assert kebabize('currentThread',
                     acronyms=['THREAD']) == 'current-thread'
Пример #17
0
 def test_kebabize_revert(self):
     assert pascalize(kebabize('LongUrlPath')) == 'LongUrlPath'
Пример #18
0
 def test_kebabize_revert(self):
     assert snakeize(kebabize('long_url_path')) == 'long_url_path'