

def test_create_id_set(self):
    req_obj = request_spec.RequestSpec(self.context)
    req_obj.id = 3
    self.assertRaises(exception.ObjectActionError, req_obj.create)

dataset/ETHPy150Open openstack/nova/nova/tests/unit/objects/test_request_spec.py _TestRequestSpecObject.test_create_id_set/original