def setUp(self):
        super(ImageControllerWithGlanceServiceTest, self).setUp()
        self.flags(image_service='nova.image.glance.GlanceImageService')
        self.stubs = stubout.StubOutForTesting()
        fakes.stub_out_networking(self.stubs)
        fakes.stub_out_rate_limiting(self.stubs)
        fakes.stub_out_key_pair_funcs(self.stubs)
        self.fixtures = self._make_image_fixtures()
        fakes.stub_out_glance(self.stubs, initial_fixtures=self.fixtures)
        fakes.stub_out_compute_api_snapshot(self.stubs)
        fakes.stub_out_compute_api_backup(self.stubs)
Run before each test.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/api/openstack/test_images.py/ImageControllerWithGlanceServiceTest.setUp