'Validate that an SSL login creates an eamap user and
redirects them to the signup page on CMS.'

@skip_unless_cms
def test_ssl_login_with_signup_cms(self):

    self.client.get(reverse('contentstore.views.login_page'), SSL_CLIENT_S_DN=self.AUTH_DN.format(self.USER_NAME, self.USER_EMAIL))
    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)))
    with self.assertRaises(User.DoesNotExist):
        User.objects.get(email=self.USER_EMAIL)
