예제 #1
0
    def setUp(self):
        super(TestServiceList, self).setUp()

        self.sdk_client.services.return_value = [self.service]

        # Get the command object to test
        self.cmd = service.ListService(self.app, None)
    def setUp(self):
        super(TestServiceList, self).setUp()

        self.service = compute_fakes.FakeService.create_one_service()

        self.service_mock.list.return_value = [self.service]

        # Get the command object to test
        self.cmd = service.ListService(self.app, None)
예제 #3
0
    def setUp(self):
        super(TestServiceList, self).setUp()

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

        # Get the command object to test
        self.cmd = service.ListService(self.app, None)