def METHOD_NAME(self):
    """test redirect with appending slash"""
    # get object
    tagcolor_api_1 = Tagcolor.objects.get(tagcolor_name='tagcolor_api_1')
    # login testuser
    self.client.login(
        username='testuser_tagcolor_api', password='twvVpQ4LBNN9swnJcy2f'
    )
    # create url
    destination = urllib.parse.quote(
        '/api/tagcolor/' + str(tagcolor_api_1.tagcolor_id) + '/', safe='/'
    )
    # get response
    response = self.client.get(
        '/api/tagcolor/' + str(tagcolor_api_1.tagcolor_id), follow=True
    )
    # compare
    self.assertRedirects(
        response, destination, status_code=301, target_status_code=200
    )