# Copyright (c) 2013 Bull.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from climate.api.v1.oshosts import service as service_api
from climate import tests


class RPCApiTestCase(tests.TestCase):
    def setUp(self):
        super(RPCApiTestCase, self).setUp()
        self.s_api = service_api

        self.fake_list = []
        self.fake_computehost = {}

        fake_get_computehosts = self.patch(self.s_api.API, "get_computehosts")
        fake_get_computehosts.return_value = self.fake_list
        self.patch(self.s_api.API, "create_computehost").return_value = True
        fake_get_computehost = self.patch(self.s_api.API, "get_computehost")
        fake_get_computehost.return_value = self.fake_computehost
        self.patch(self.s_api.API, "update_computehost").return_value = True
        self.patch(self.s_api.API, "delete_computehost").return_value = True

    def test_get_computehost(self):
        pass

    def test_create_computehost(self):
        pass

    def test_update_computehost(self):
        pass

    def test_delete_computehost(self):
        pass
