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