def METHOD_NAME(self):
    request = self.factory.get('/test')
    request.user = create_user('testuser')
    token = self.__create_token()
    with self.settings(DJANGO_CRADMIN_SITENAME='Testsite'):
        response = AcceptInviteView.as_view()(request, token=token.token)
    self.assertEqual(response.status_code, 200)
    response.render()
    selector = htmls.S(response.content)
    self.assertTrue(selector.exists('button#django_cradmin_invite_accept_as_button'))
    self.assertEqual(
        selector.one('#django_cradmin_invite_accept_register_account_button')['href'],
        '/cradmin_register_account/?next=http%3A%2F%2Ftestserver%2Ftest')
    self.assertEqual(
        selector.one('#django_cradmin_invite_accept_login_as_different_user_button')['href'],
        '/cradmin_authenticate/logout?'
        'next=%2Faccounts%2Flogin%2F%3Fnext%3Dhttp%253A%252F%252Ftestserver%252Ftest')
    self.assertEqual(
        selector.one('button#django_cradmin_invite_accept_as_button').alltext_normalized,
        'Accept as testuser')
    self.assertEqual(
        selector.one('#django_cradmin_invite_accept_register_account_button').alltext_normalized,
        'Sign up for Testsite')
    self.assertEqual(
        selector.one('#django_cradmin_invite_accept_login_as_different_user_button').alltext_normalized,
        'Sign in as another user')