def test_should_not_be_able_to_set_generated_attributes(self):
        container = self.manager.create()

        # Verify that generated attributes cannot be set.
        attributes = [
            "container_ref", "created", "updated", "status", "consumers"
        ]
        for attr in attributes:
            try:
                setattr(container, attr, "test")
                self.fail("didn't raise an AttributeError exception")
            except __HOLE__:
                pass
dataset/ETHPy150Open openstack/python-barbicanclient/barbicanclient/tests/test_containers.py/WhenTestingContainers.test_should_not_be_able_to_set_generated_attributes