

def test_identifiers_in_repr(self):
    model = {
        'identifiers': [{
            'name': 'QueueUrl',
        }, {
            'name': 'ReceiptHandle',
        }],
    }
    defs = {
        'Message': model,
    }
    resource = self.load('Message', model, defs)('url', 'handle')
    self.assertIn('test.Message', repr(resource))
    self.assertIn('queue_url', repr(resource))
    self.assertIn("'url'", repr(resource))
    self.assertIn('receipt_handle', repr(resource))
    self.assertIn("'handle'", repr(resource))

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