'Test for 302 header redirects'

def _30x_code_redirect(self, response, lheaders):

    for header_name in ('location', 'uri'):
        if (header_name in lheaders):
            header_value = lheaders[header_name]
            for test_url in self.TEST_URLS:
                if self._domains_are_equal(header_value, test_url):
                    return True
    return False
