def test_set_encoding_type(self): params = {} context = {} handlers.set_list_objects_encoding_type_url(params, context=context) self.assertEqual(params['EncodingType'], 'url') self.assertTrue(context['encoding_type_auto_set']) params['EncodingType'] = 'new_value' handlers.set_list_objects_encoding_type_url(params, context={}) self.assertEqual(params['EncodingType'], 'new_value')
def test_set_encoding_type(self): params = {} context = {} handlers.set_list_objects_encoding_type_url(params, context=context) self.assertEqual(params['EncodingType'], 'url') self.assertTrue(context['EncodingTypeAutoSet']) params['EncodingType'] = 'new_value' handlers.set_list_objects_encoding_type_url(params, context={}) self.assertEqual(params['EncodingType'], 'new_value')
def test_set_encoding_type(self): params = {} context = {} handlers.set_list_objects_encoding_type_url(params, context=context) self.assertEqual(params["EncodingType"], "url") self.assertTrue(context["EncodingTypeAutoSet"]) params["EncodingType"] = "new_value" handlers.set_list_objects_encoding_type_url(params, context={}) self.assertEqual(params["EncodingType"], "new_value")