def test_domain_remap_extra_subdomains(self):
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET'}, headers={'Host': 'x.y.c.AUTH_a.example.com'})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, ['Bad domain in host header'])
def test_domain_remap_extra_subdomains(self):
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET'}, headers={'Host': 'x.y.c.AUTH_a.example.com'})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, ['Bad domain in host header'])