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