def METHOD_NAME(self, redirect):
    """
    Test that a successful login redirects to /webclient/
    or to specified url
    """
    django_client = self.django_root_client
    # redirect = reverse('load_template', kwargs={'menu': 'usertags'})
    request_url = "%s?url=%s" % (reverse('weblogin'), redirect)
    data = {'username': self.ctx.userName,
            'password': self.ctx.userName,
            'server': 1}
    rsp = post(django_client, request_url, data, status_code=302)
    if len(redirect) == 0:
        redirect = reverse('webindex')
    assert rsp['Location'].endswith(redirect)