

def test_non_service_resource_missing_defs(self):
    defs = {
        'Queue': {
            'identifiers': [{
                'name': 'Url',
            }],
        },
        'Message': {
            'identifiers': [{
                'name': 'QueueUrl',
            }, {
                'name': 'ReceiptHandle',
            }],
        },
    }
    model = defs['Queue']
    queue = self.load('Queue', model, defs)('url')
    self.assertTrue((not hasattr(queue, 'Queue')))
    self.assertTrue((not hasattr(queue, 'Message')))

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