コード例 #1
0
 def test_valid_nubers(self):
     """Test."""
     assert filters.camel2hyphen('bCamelCASE123', ) == 'b-camel-case123'
コード例 #2
0
 def test_valid_three_hyphen(self):
     """Test."""
     assert filters.camel2hyphen('bCamelCase', ) == 'b-camel-case'
コード例 #3
0
 def test_valid_repeating_upper(self):
     """Test."""
     assert filters.camel2hyphen('bCamelCASE', ) == 'b-camel-case'
コード例 #4
0
 def test_empty_str(self):
     """Test."""
     assert filters.camel2hyphen('', ) == ''
コード例 #5
0
 def test_valid_single_upper_first(self):
     """Test."""
     assert filters.camel2hyphen('CamelCase', ) == 'camel-case'
コード例 #6
0
 def test_valid_nubers(self):
     """Test."""
     assert filters.camel2hyphen('bCamelCASE123', ) == 'b-camel-case123'
コード例 #7
0
 def test_valid_repeating_upper(self):
     """Test."""
     assert filters.camel2hyphen('bCamelCASE', ) == 'b-camel-case'
コード例 #8
0
 def test_valid_three_hyphen(self):
     """Test."""
     assert filters.camel2hyphen('bCamelCase', ) == 'b-camel-case'
コード例 #9
0
 def test_valid_single_upper_first(self):
     """Test."""
     assert filters.camel2hyphen('CamelCase', ) == 'camel-case'
コード例 #10
0
 def test_empty_str(self):
     """Test."""
     assert filters.camel2hyphen('', ) == ''