示例#1
0
    def test_variants(self):
        from servee.utils import space_out_camel_case

        self.assertEqual(space_out_camel_case('nospacesanywhere'), 'nospacesanywhere')
        self.assertEqual(space_out_camel_case('A'), 'A')
        self.assertEqual(space_out_camel_case('AB'), 'AB')
        self.assertEqual(space_out_camel_case('Abc'), 'Abc')
        self.assertEqual(space_out_camel_case('ABc'), 'A Bc')
        self.assertEqual(space_out_camel_case('AbCd'), 'Ab Cd')
        self.assertEqual(space_out_camel_case('TypicalCamelCase'), 'Typical Camel Case')
        self.assertEqual(space_out_camel_case('DMLSServicesOtherBSTextLLC'), 'DMLS Services Other BS Text LLC')
示例#2
0
文件: insert.py 项目: servee/servee
 def title(self):
     return space_out_camel_case(self.__class__.__name__)