Exemple #1
0
 def test_camelcase(self):
     self.assertEqual(split_camel("RabisonTravis"), "rabison-travis")
     self.assertEqual(split_camel("Rabison"), "rabison")
     self.assertEqual(split_camel("RabisonTravisGabrai"), "rabison-travis-gabrai")
Exemple #2
0
 def test_another_separator(self):
     self.assertEqual(split_camel("RabisonTravis", separator="+"), "rabison+travis")
Exemple #3
0
 def test_not_camelcase(self):
     self.assertEqual(split_camel("rabison"), "rabison")
     self.assertEqual(split_camel("rabisontravis"), "rabisontravis")