'Test for meta redirects'

def _meta_redirect(self, response):

    try:
        dp = parser_cache.dpc.get_document_parser_for(response)
    except BaseFrameworkException:
        return False
    else:
        for redir in dp.get_meta_redir():
            match_url = self._meta_url_re.match(redir)
            if match_url:
                url = match_url.group(1)
                for test_url in self.TEST_URLS:
                    if self._domains_are_equal(url, test_url):
                        return True
    return False
