# Path: ecs_scheduler/webapi/home.py
# class Home(flask_restful.Resource):
#     """Home url REST resource."""
# 
#     def get(self):
#         """
#         Home
#         Available endpoints for the web api.
#         ---
#         tags:
#             - docs
#         produces:
#             - application/json
#         responses:
#             200:
#                 description: List of available endpoints
#         """
#         return {
#             'resources': [
#                 {
#                     'link': {
#                         'rel': 'jobs',
#                         'title': 'Jobs',
#                         'href': flask.url_for(Jobs.__name__.lower()),
#                     },
#                 },
#                 {
#                     'link': {
#                         'rel': 'spec',
#                         'title': 'Spec',
#                         'href': flask.url_for(Spec.__name__.lower()),
#                     },
#                 }
#             ],
#         }


import unittest
from unittest.mock import patch
from ecs_scheduler.webapi.home import Home



class HomeTests(unittest.TestCase):
    @patch('flask.url_for', side_effect=lambda name: 'foo/' + name)
    def test_get(self, fake_url):

# Path: ecs_scheduler/webapi/home.py
# class Home(flask_restful.Resource):
#     """Home url REST resource."""
# 
#     def get(self):
#         """
#         Home
#         Available endpoints for the web api.
#         ---
#         tags:
#             - docs
#         produces:
#             - application/json
#         responses:
#             200:
#                 description: List of available endpoints
#         """
#         return {
#             'resources': [
#                 {
#                     'link': {
#                         'rel': 'jobs',
#                         'title': 'Jobs',
#                         'href': flask.url_for(Jobs.__name__.lower()),
#                     },
#                 },
#                 {
#                     'link': {
#                         'rel': 'spec',
#                         'title': 'Spec',
#                         'href': flask.url_for(Spec.__name__.lower()),
#                     },
#                 }
#             ],
#         }


# Path: test/webapi/test_home.py
import unittest
from unittest.mock import patch
from ecs_scheduler.webapi.home import Home




class HomeTests(unittest.TestCase):
    @patch('flask.url_for', side_effect=lambda name: 'foo/' + name)
    def test_get(self, fake_url):

        home = Home()