

def test_resource_meta_unique(self):
    queue_cls = self.load('Queue')
    queue1 = queue_cls()
    queue2 = queue_cls()
    self.assertEqual(queue1.meta, queue2.meta, 'Queue meta copies not equal after creation')
    queue1.meta.data = {
        'id': 'foo',
    }
    queue2.meta.data = {
        'id': 'bar',
    }
    self.assertNotEqual(queue_cls.meta, queue1.meta, 'Modified queue instance data should not modify the class data')
    self.assertNotEqual(queue1.meta, queue2.meta, 'Queue data should be unique to queue instance')
    self.assertNotEqual(queue1.meta, 'bad-value')

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