Пример #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
 def title(self):
     return space_out_camel_case(self.__class__.__name__)