def METHOD_NAME(self):
    """test redirect with appending slash"""
    # get object
    taskpriority_api_1 = Taskpriority.objects.get(taskpriority_name='tp_1')
    # login testuser
    self.client.login(
        username='testuser_taskpriority_api', password='XyVSKtfXKwyyprt2b8Ej'
    )
    # create url
    destination = urllib.parse.quote(
        '/api/taskpriority/' + str(taskpriority_api_1.taskpriority_id) + '/',
        safe='/',
    )
    # get response
    response = self.client.get(
        '/api/taskpriority/' + str(taskpriority_api_1.taskpriority_id), follow=True
    )
    # compare
    self.assertRedirects(
        response, destination, status_code=301, target_status_code=200
    )