Пример #1
0
 def test_out_list_format_key_multiple_words(self):
     lo = ListOutput()
     self.assertEqual(lo._formatted_keys_cache, {})
     lo._get_formatted_key('locationIdState')
     self.assertEqual(lo._formatted_keys_cache,
                      {'locationIdState': 'Location Id State'})
Пример #2
0
 def test_out_list_format_key_multiple_caps(self):
     lo = ListOutput()
     self.assertEqual(lo._formatted_keys_cache, {})
     lo._get_formatted_key('fooIDS')
     self.assertEqual(lo._formatted_keys_cache, {'fooIDS': 'Foo Ids'})
Пример #3
0
 def test_out_list_format_key_single(self):
     lo = ListOutput()
     self.assertEqual(lo._formatted_keys_cache, {})
     lo._get_formatted_key('location')
     self.assertEqual(lo._formatted_keys_cache, {'location': 'Location'})
Пример #4
0
 def test_out_list_format_key_multiple_words(self):
     lo = ListOutput()
     self.assertEqual(lo._formatted_keys_cache, {})
     lo._get_formatted_key('locationIdState')
     self.assertEqual(lo._formatted_keys_cache, {'locationIdState': 'Location Id State'})
Пример #5
0
 def test_out_list_format_key_multiple_caps(self):
     lo = ListOutput()
     self.assertEqual(lo._formatted_keys_cache, {})
     lo._get_formatted_key('fooIDS')
     self.assertEqual(lo._formatted_keys_cache, {'fooIDS': 'Foo Ids'})
Пример #6
0
 def test_out_list_format_key_single(self):
     lo = ListOutput()
     self.assertEqual(lo._formatted_keys_cache, {})
     lo._get_formatted_key('location')
     self.assertEqual(lo._formatted_keys_cache, {'location': 'Location'})