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