# Path: vcontrol/rest/providers/info.py
# class InfoProviderR:
#     """
#     This endpoint is for getting info about a provider.
#     """
#     def GET(self, machine):
#         """ GET HTTP Request """
#         try:       
#             web.header('Access-Control-Allow-Origin', self.allow_origin)
#         except Exception as e:
#             print(e.message)
#         try:
#             # TODO
#             return "not implemented yet"
#         except:
#             return "unable to get provider info"


from vcontrol.rest.providers.info import InfoProviderR

UNSUCCESSFUL_INFO_PROVIDERS_MESSAGE =  "unable to get provider info"

# TODO: Test provider ID set for foo for now. The method is unimplemented. This needs to be fixed when the method is implemented
TEST_PROVIDER_ID = "foo"


def test_successful_get_provider_info():
    """ tests if the InfoProvidersR gets the providers successfully """

# Path: vcontrol/rest/providers/info.py
# class InfoProviderR:
#     """
#     This endpoint is for getting info about a provider.
#     """
#     def GET(self, machine):
#         """ GET HTTP Request """
#         try:       
#             web.header('Access-Control-Allow-Origin', self.allow_origin)
#         except Exception as e:
#             print(e.message)
#         try:
#             # TODO
#             return "not implemented yet"
#         except:
#             return "unable to get provider info"


# Path: tests/test_rest_providers_info.py
from vcontrol.rest.providers.info import InfoProviderR


UNSUCCESSFUL_INFO_PROVIDERS_MESSAGE =  "unable to get provider info"

# TODO: Test provider ID set for foo for now. The method is unimplemented. This needs to be fixed when the method is implemented
TEST_PROVIDER_ID = "foo"


def test_successful_get_provider_info():
    """ tests if the InfoProvidersR gets the providers successfully """

    info_providers = InfoProviderR()