def METHOD_NAME(self):
    """test redirect with appending slash"""
    # get object
    systemuser_api_1 = Systemuser.objects.get(systemuser_name='systemuser_api_1')
    # login testuser
    self.client.login(
        username='testuser_systemuser_api', password='Yij2up4yTV2BU6x9xKZV'
    )
    # create url
    destination = urllib.parse.quote(
        '/api/systemuser/' + str(systemuser_api_1.systemuser_id) + '/', safe='/'
    )
    # get response
    response = self.client.get(
        '/api/systemuser/' + str(systemuser_api_1.systemuser_id), follow=True
    )
    # compare
    self.assertRedirects(
        response, destination, status_code=301, target_status_code=200
    )