def _is_internal_request(domain, referer):
    # Different subdomains are treated as different domains.
    return referer is not None and re.match("^https?://%s/" % re.escape(domain), referer)
Like L{test_lookupAddressNotFound}, but for
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/middleware/common.py/_is_internal_request--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/names/test/test_hosts.py/HostsTests.test_lookupIPV6AddressNotFound