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