'Logins with no next parameter redirect to LOGIN_REDIRECT_URL.'

def test_login_no_next(self):

    user = User.objects.create_user('someuser', 'someone@example.com')
    useropenid = UserOpenID(user=user, claimed_id='http://example.com/identity', display_id='http://example.com/identity')
    useropenid.save()
    settings.LOGIN_REDIRECT_URL = '/getuser/'
    response = self.client.post('/openid/login/', {'openid_identifier': 'http://example.com/identity'})
    self.assertContains(response, 'OpenID    transaction    in    progress')
    openid_request = self.provider.parseFormPost(response.content)
    self.assertEquals(openid_request.mode, 'checkid_setup')
    self.assertTrue(openid_request.return_to.startswith('http://testserver/openid/complete/'))
    openid_response = openid_request.answer(True)
    response = self.complete(openid_response)
    self.assertRedirects(response, ('http://testserver' + settings.LOGIN_REDIRECT_URL))
