# Path: services/mgmt.py
# SERVICES_CONFIGURATION_FILE = os.path.join(settings.BASE_DIR, 'services/services_conf.cfg')
# SERVICES_SCAN_FOLDER = os.path.join(settings.BASE_DIR, 'services/3rd_party/')
# def _load_services():
# def _configure_services(loaded_services):
# def _load_and_configure_services():
# def get_available_services(component=None, exclude=None, include=None):
# def get_service_by_id(service_id):
# def get_service_by_name(service_name):


from django.test import TestCase
from services.mgmt import get_available_services, available_services


class ServicesManagement(TestCase):

    def test_get_available_services(self):

        # Check that all services are returned by get_available_services() when no further parameters are given
        for service in available_services:

# Path: services/mgmt.py
# SERVICES_CONFIGURATION_FILE = os.path.join(settings.BASE_DIR, 'services/services_conf.cfg')
# SERVICES_SCAN_FOLDER = os.path.join(settings.BASE_DIR, 'services/3rd_party/')
# def _load_services():
# def _configure_services(loaded_services):
# def _load_and_configure_services():
# def get_available_services(component=None, exclude=None, include=None):
# def get_service_by_id(service_id):
# def get_service_by_name(service_name):


# Path: services/tests.py
from django.test import TestCase
from services.mgmt import get_available_services, available_services



class ServicesManagement(TestCase):

    def test_get_available_services(self):

        # Check that all services are returned by get_available_services() when no further parameters are given
        for service in available_services:

            self.assertIn(service, get_available_services())