@override_settings(WSGI_APPLICATION=None)
    def test_default(self):
        # Mock out get_wsgi_application so we know its return value is used
        fake_app = object()
        def mock_get_wsgi_app():
            return fake_app
        from django.core.servers import basehttp
        _orig_get_wsgi_app = basehttp.get_wsgi_application
        basehttp.get_wsgi_application = mock_get_wsgi_app

        try:
            app = get_internal_wsgi_application()

            self.assertTrue(app is fake_app)
        finally:
            basehttp.get_wsgi_application = _orig_get_wsgi_app
If ``WSGI_APPLICATION`` is ``None``, the return value of
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/tests/wsgi/tests.py/GetInternalWSGIApplicationTest.test_default