def setUp(self):
        super(TestServiceSet, self).setUp()

        self.service = compute_fakes.FakeService.create_one_service()

        self.sdk_client.enable_service.return_value = self.service
        self.sdk_client.disable_service.return_value = self.service

        self.cmd = service.SetService(self.app, None)
示例#2
0
    def setUp(self):
        super(TestServiceSet, self).setUp()

        self.service_mock.enable.return_value = [fakes.FakeResource(
            None,
            copy.deepcopy(compute_fakes.SERVICE),
            loaded=True,
        )]

        self.service_mock.disable.return_value = [fakes.FakeResource(
            None,
            copy.deepcopy(compute_fakes.SERVICE),
            loaded=True,
        )]

        self.cmd = service.SetService(self.app, None)