def METHOD_NAME(self):
    """test redirect with appending slash"""
    # get object
    casepriority_api_1 = Casepriority.objects.get(
        casepriority_name='casepriority_api_1'
    )
    # login testuser
    self.client.login(
        username='testuser_casepriority_api', password='IkVd4MCMYIlTf5MbCiF8'
    )
    # create url
    destination = urllib.parse.quote(
        '/api/casepriority/' + str(casepriority_api_1.casepriority_id) + '/',
        safe='/',
    )
    # get response
    response = self.client.get(
        '/api/casepriority/' + str(casepriority_api_1.casepriority_id), follow=True
    )
    # compare
    self.assertRedirects(
        response, destination, status_code=301, target_status_code=200
    )