def METHOD_NAME(self):
    """test redirect with appending slash"""
    # get object
    company_api_1 = Company.objects.get(company_name='company_api_1')
    # login testuser
    self.client.login(
        username='testuser_company_api', password='tvjnIPBlhP9P3ixDHVE7'
    )
    # create url
    destination = urllib.parse.quote(
        '/api/company/' + str(company_api_1.company_id) + '/', safe='/'
    )
    # get response
    response = self.client.get(
        '/api/company/' + str(company_api_1.company_id), follow=True
    )
    # compare
    self.assertRedirects(
        response, destination, status_code=301, target_status_code=200
    )