# Path: admin_interface/settings.py
# def check_installed_apps():
#     check_installed_app("colorfield")
#     check_installed_app("flat", max_dj_version=(1, 9))
#     check_installed_app("flat_responsive", max_dj_version=(2, 0))


import django
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.test import override_settings, TestCase
from admin_interface.settings import check_installed_apps
# -*- coding: utf-8 -*-

from __future__ import unicode_literals




class AdminInterfaceSettingsTestCase(TestCase):

    DJANGO_APPS = [
        "django.contrib.admin",
        "django.contrib.auth",
        "django.contrib.contenttypes",
        "django.contrib.messages",
        "django.contrib.sessions",
    ]

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def __test_installed_apps(self):
        dj_version = django.VERSION
        installed_apps = settings.INSTALLED_APPS

        if "colorfield" not in installed_apps:

# Path: admin_interface/settings.py
# def check_installed_apps():
#     check_installed_app("colorfield")
#     check_installed_app("flat", max_dj_version=(1, 9))
#     check_installed_app("flat_responsive", max_dj_version=(2, 0))


# Path: tests/test_settings.py
import django
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.test import override_settings, TestCase
from admin_interface.settings import check_installed_apps

# -*- coding: utf-8 -*-

from __future__ import unicode_literals




class AdminInterfaceSettingsTestCase(TestCase):

    DJANGO_APPS = [
        "django.contrib.admin",
        "django.contrib.auth",
        "django.contrib.contenttypes",
        "django.contrib.messages",
        "django.contrib.sessions",
    ]

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def __test_installed_apps(self):
        dj_version = django.VERSION
        installed_apps = settings.INSTALLED_APPS

        if "colorfield" not in installed_apps:

            self.assertRaises(ImproperlyConfigured, check_installed_apps)