'This tests to make sure when ssl authentication is on
that user doesn\'t get presented with the login page if they
have a certificate.'

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

    response = self.client.get(reverse('signin_user'))
    self.assertEqual(200, response.status_code)
    self.assertIn('login-and-registration-container', response.content)
    response = self.client.get(reverse('signin_user'), follow=True, SSL_CLIENT_S_DN=self.AUTH_DN.format(self.USER_NAME, self.USER_EMAIL))
    self.assertEquals(('http://testserver/dashboard', 302), response.redirect_chain[(-1)])
    self.assertIn(SESSION_KEY, self.client.session)
