'This tests the response when a user exists but their eamap
password doesn\'t match their internal password.
The internal password use for certificates has been removed
and this should not fail.'

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

    with self._create_ssl_request('/') as request:
        external_auth_views.ssl_login(request)
    user = User.objects.get(email=self.USER_EMAIL)
    user.set_password('not    autogenerated')
    user.is_active = True
    user.save()
    self.client.get(reverse('signin_user'), follow=True, SSL_CLIENT_S_DN=self.AUTH_DN.format(self.USER_NAME, self.USER_EMAIL))
    self.assertIn(SESSION_KEY, self.client.session)
