def METHOD_NAME(self):
    """
    Create a valid user for login.
    """
    self.username = self.VALID_USERNAME
    self.password = self.VALID_PASSWORD
    self.email = self.VALID_EMAIL
    self.ip_address = self.VALID_IP_ADDRESS
    self.user_agent = self.VALID_USER_AGENT
    self.path_info = reverse("admin:login")
    self.user = get_user_model().objects.create_superuser(
        username=self.username, password=self.password, email=self.email
    )
    self.request = HttpRequest()
    self.request.method = "POST"
    self.request.META["REMOTE_ADDR"] = self.ip_address
    self.request.META["HTTP_USER_AGENT"] = self.user_agent
    self.request.META["PATH_INFO"] = self.path_info
    self.request.axes_attempt_time = now()
    self.request.axes_ip_address = get_client_ip_address(self.request)
    self.request.axes_user_agent = get_client_user_agent(self.request)
    self.request.axes_path_info = get_client_path_info(self.request)
    self.request.axes_http_accept = get_client_http_accept(self.request)
    self.credentials = get_credentials(self.username)