

@mock.patch('boto3.resources.factory.ServiceAction')
def test_resource_action_clears_data(self, action_cls):
    model = {
        'load': {
            'request': {
                'operation': 'DescribeQueue',
            },
        },
        'actions': {
            'GetMessageStatus': {
                'request': {
                    'operation': 'DescribeMessageStatus',
                },
            },
        },
    }
    queue = self.load('Queue', model)()
    queue.meta.data = {
        'some': 'data',
    }
    queue.get_message_status()
    self.assertIsNone(queue.meta.data)

dataset/ETHPy150Open boto/boto3/tests/unit/resources/test_factory.py TestResourceFactory.test_resource_action_clears_data/original