

@mock.patch('boto3.resources.action.create_request_parameters', return_value={
    
})
@mock.patch('boto3.resources.action.RawHandler')
def test_service_action_calls_raw_handler(self, handler_mock, params_mock):
    resource = mock.Mock()
    resource.meta = ResourceMeta('test', client=mock.Mock())
    operation = resource.meta.client.get_frobs
    operation.return_value = 'response'
    action = ServiceAction(self.action)
    handler_mock.return_value.return_value = 'response'
    action(resource)
    handler_mock.assert_called_with(None)
    handler_mock.return_value.assert_called_with(resource, {
        
    }, 'response')

dataset/ETHPy150Open boto/boto3/tests/unit/resources/test_action.py TestServiceActionCall.test_service_action_calls_raw_handler/original