

@mock.patch('boto3.resources.action.create_request_parameters', return_value={
    'bar': 'baz',
})
def test_service_action_calls_operation(self, params_mock):
    resource = mock.Mock()
    resource.meta = ResourceMeta('test', client=mock.Mock())
    get_waiter = resource.meta.client.get_waiter
    mock_waiter = mock.Mock()
    self.return_value = mock_waiter
    action = WaiterAction(self.waiter, self.waiter_resource_name)
    action(resource, foo=1)
    get_waiter.assert_called_with('frob_exists')
    mock_waiter.wait.assert_called_with(foo=1, bar='baz')

dataset/ETHPy150Open boto/boto3/tests/unit/resources/test_action.py TestWaiterActionCall.test_service_action_calls_operation/VarMisuse@74/111 `get_waiter`->`self`