# Path: tests/unit/test.py
# class TestCase(testtools.TestCase):
#     def setUp(self):
#     def mock_config(self, update=None):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def get(self, *args, **kwargs):


import collections
import mock
from tests.unit import test
# All Rights Reserved.
#
#    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.





class ApiTestCase(test.TestCase):

    def test_api_response_code(self):
        self.mock_config({
            "use_fake_api_data": False,
        })
        code, resp = self.get("/api/v1/regions")
        self.assertEqual(code, 200)
        code, resp = self.get("/api/v1/regions/detailed")
        self.assertEqual(code, 200)



# Path: tests/unit/test.py
# class TestCase(testtools.TestCase):
#     def setUp(self):
#     def mock_config(self, update=None):
#     def post(self, *args, **kwargs):
#     def put(self, *args, **kwargs):
#     def delete(self, *args, **kwargs):
#     def get(self, *args, **kwargs):


# Path: tests/unit/api/v1/test_regions.py
import collections
import mock
from tests.unit import test

# All Rights Reserved.
#
#    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.





class ApiTestCase(test.TestCase):

    def test_api_response_code(self):
        self.mock_config({
            "use_fake_api_data": False,
        })
        code, resp = self.get("/api/v1/regions")
        self.assertEqual(code, 200)
        code, resp = self.get("/api/v1/regions/detailed")
        self.assertEqual(code, 200)



class RegionsApiTestCase(test.TestCase):