

@mock.patch('boto3.resources.factory.ServiceAction')
def test_resource_calls_action(self, action_cls):
    model = {
        'actions': {
            'GetMessageStatus': {
                'request': {
                    'operation': 'DescribeMessageStatus',
                },
            },
        },
    }
    action = action_cls.return_value
    queue = model.load('Queue', model)()
    queue.get_message_status('arg1', arg2=2)
    action.assert_called_with(queue, 'arg1', arg2=2)

dataset/ETHPy150Open boto/boto3/tests/unit/resources/test_factory.py TestResourceFactory.test_resource_calls_action/VarMisuse@60/93 `self`->`model`