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")
def test_another_separator(self): self.assertEqual(split_camel("RabisonTravis", separator="+"), "rabison+travis")
def test_not_camelcase(self): self.assertEqual(split_camel("rabison"), "rabison") self.assertEqual(split_camel("rabisontravis"), "rabisontravis")