'Make sure no external auth happens without SSL enabled'

@skip_unless_lms
@override_settings(FEATURES=FEATURES_WITHOUT_SSL_AUTH)
def test_ssl_decorator_no_certs(self):

    dec_mock = external_auth_views.ssl_login_shortcut(self.mock)
    with self._create_normal_request(self.MOCK_URL) as request:
        request.user = AnonymousUser()
        dec_mock(request)
    self.assertTrue(self.mock.called)
    self.assertEqual(0, len(ExternalAuthMap.objects.all()))
