'This tests to make sure when immediate signup is on that
the user doesn\'t get presented with the registration page.'

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

    response = self.client.get(reverse('register_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)
