539
539
stub_context = context.RequestContext(auth_token=True)
540
540
stub_context.user_id = 'fake'
541
541
stub_context.project_id = 'fake'
543
543
image_id = 1 # doesn't matter
545
545
self.assertRaises(exception.ImageNotAuthorized, stub_service.download,