def assertRedirects(self, response, url):
        if hasattr(response, 'location'):
            assert url in response.location
        else:
            assert url in response._headers['location'][1]

        if hasattr(response, 'status_code'):
            assert response.status_code == 302
        else:
            assert response.status_int == 302

        #self.assertEqual(response.status_code, 302)

        #return super(django_webtest.WebTest, self).assertRedirects(response, url)
        #if hasattr(response, 'status_code') and hasattr(response, 'location'):


        #assert url in response.location, "redirected to %s instead of %s" % (response.location, url)
Perform the thread-specific work.
dataset/ETHPy150Open benadida/helios-server/helios/tests.py/WebTest.assertRedirects--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/tools/bulkloader.py/_ThreadBase.PerformWork