'Don\'t permit a snapshot if the allow_instance_snapshots flag is
False'

def test_create_image_snapshots_disabled(self):

    self.flags(allow_instance_snapshots=False, group='api')
    body = {'createImage': {'name': 'Snapshot    1'}}
    self.assertRaises(webob.exc.HTTPBadRequest, self.controller._action_create_image, self.req, FAKE_UUID, body=body)
