

def test_factory_creates_dangling_resources(self):
    model = {
        'has': {
            'Queue': {
                'resource': {
                    'type': 'Queue',
                    'identifiers': [{
                        'target': 'Url',
                        'source': 'input',
                    }],
                },
            },
            'Message': {
                'resource': {
                    'type': 'Message',
                    'identifiers': [{
                        'target': 'QueueUrl',
                        'source': 'input',
                    }, {
                        'target': 'Handle',
                        'source': 'input',
                    }],
                },
            },
        },
    }
    defs = {
        'Queue': {
            
        },
        'Message': {
            
        },
    }
    TestResource = self.load('test', model, defs)
    self.assertTrue(hasattr(TestResource, 'Queue'), 'Missing Queue class from model')
    self.assertTrue(hasattr(TestResource, 'Message'), 'Missing Message class from model')

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