'Test IMMEDIATE_SIGNUP feature flag and ensure the user account is automatically created
and the user is redirected to slash.'

@skip_unless_lms
@override_settings(FEATURES=FEATURES_WITH_SSL_AUTH_IMMEDIATE_SIGNUP)
def test_ssl_login_without_signup_lms(self):

    with self._create_ssl_request('/') as request:
        external_auth_views.ssl_login(request)
    try:
        ExternalAuthMap.objects.get(external_id=self.USER_EMAIL)
    except ExternalAuthMap.DoesNotExist as ex:
        self.fail('User    did    not    get    properly    added    to    external    auth    map,    exception    was    {0}'.format(str(ex)))
    try:
        User.objects.get(email=self.USER_EMAIL)
    except ExternalAuthMap.DoesNotExist as ex:
        self.fail('User    did    not    get    properly    added    to    internal    users,    exception    was    {0}'.format(str(ex)))
