# Path: tests/sites.py
# class MDTestSiteDebugHelper(MDSite):
#     """Test site for use with fake FS and debug helper enabled."""
# 
#     class MDConfig:  # pylint: disable=R0903
#         """Config class for testing."""
# 
#         DEBUG = False
#         SECRET_KEY = 'create_a_secret_key_for_use_in_production'
#         CONTENT_PATH = 'demo-content/'
#         THEME = 'bootstrap'
#         TESTING = True
#         GA_TRACKING_ID = 'UA-00000000-1'
#         DEBUG_HELPER = True
# 
# class MDTestSite(MDSite):
#     """Test site for use with real FS"""
# 
#     class MDConfig:  # pylint: disable=R0903
#         """Config class for testing."""
# 
#         DEBUG = False
#         SECRET_KEY = 'create_a_secret_key_for_use_in_production'
#         CONTENT_PATH = 'demo-content/'
#         THEME = 'basic'
#         TESTING = True
#         GA_TRACKING_ID = 'UA-00000000-1'
#         DEBUG_HELPER = False


from flask_testing import TestCase
from tests.sites import MDTestSiteDebugHelper, MDTestSite
        )
        app.start()

        return app

    def test_debug_helper_loads(self):
        # self.app.DEBUG_HELPER
        with self.app.test_client() as client:
            response = client.get('/')
            response_data = response.get_data(as_text=True)
        self.assertTrue('<div id="md_debug_display">' in response_data)


class TestDebugHelperOff(TestCase):
    """Debug helper tests.

    Can't use pyfakefs for this or partials won't load"""

    def create_app(self):
        app = MDTestSite(
            "MDWeb",
            app_options={}
        )
        app.start()

        return app

    def test_debug_helper_loads(self):
        with self.app.test_client() as client:
            response = client.get('/')

# Path: tests/sites.py
# class MDTestSiteDebugHelper(MDSite):
#     """Test site for use with fake FS and debug helper enabled."""
# 
#     class MDConfig:  # pylint: disable=R0903
#         """Config class for testing."""
# 
#         DEBUG = False
#         SECRET_KEY = 'create_a_secret_key_for_use_in_production'
#         CONTENT_PATH = 'demo-content/'
#         THEME = 'bootstrap'
#         TESTING = True
#         GA_TRACKING_ID = 'UA-00000000-1'
#         DEBUG_HELPER = True
# 
# class MDTestSite(MDSite):
#     """Test site for use with real FS"""
# 
#     class MDConfig:  # pylint: disable=R0903
#         """Config class for testing."""
# 
#         DEBUG = False
#         SECRET_KEY = 'create_a_secret_key_for_use_in_production'
#         CONTENT_PATH = 'demo-content/'
#         THEME = 'basic'
#         TESTING = True
#         GA_TRACKING_ID = 'UA-00000000-1'
#         DEBUG_HELPER = False


# Path: tests/test_debug_helper.py
from flask_testing import TestCase
from tests.sites import MDTestSiteDebugHelper, MDTestSite

        )
        app.start()

        return app

    def test_debug_helper_loads(self):
        # self.app.DEBUG_HELPER
        with self.app.test_client() as client:
            response = client.get('/')
            response_data = response.get_data(as_text=True)
        self.assertTrue('<div id="md_debug_display">' in response_data)


class TestDebugHelperOff(TestCase):
    """Debug helper tests.

    Can't use pyfakefs for this or partials won't load"""

    def create_app(self):
        app = MDTestSite(
            "MDWeb",
            app_options={}
        )
        app.start()

        return app

    def test_debug_helper_loads(self):
        with self.app.test_client() as client:
            response = client.get('/')

            response_data = response.get_data(as_text=True)