'Warn if SESSION_COOKIE_SECURE is off and
"django.contrib.sessions.middleware.SessionMiddleware" is in
MIDDLEWARE.'

@override_settings(SESSION_COOKIE_SECURE=False, INSTALLED_APPS=[], MIDDLEWARE=['django.contrib.sessions.middleware.SessionMiddleware'])
def test_session_cookie_secure_with_middleware(self):

    self.assertEqual(self.func(None), [sessions.W011])
