示例#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'})