def METHOD_NAME(self):
    """test redirect with appending slash"""
    # login testuser
    self.client.login(username='testuser_ip_api', password='2SxcYh8yo3rGs4PBqhg9')
    # create url
    destination = urllib.parse.quote('/api/ip/', safe='/')
    # get response
    response = self.client.get('/api/ip', follow=True)
    # compare
    self.assertRedirects(
        response, destination, status_code=301, target_status_code=200
    )