def test_domain_remap_passthrough(self):
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'example.com'}, headers={'Host': None})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, '/')
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET'}, headers={'Host': 'example.com'})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, '/')
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET'}, headers={'Host': 'example.com:8080'})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, '/')
def test_domain_remap_passthrough(self):
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET', 'SERVER_NAME': 'example.com'}, headers={'Host': None})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, '/')
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET'}, headers={'Host': 'example.com'})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, '/')
    req = Request.blank('/', environ={'REQUEST_METHOD': 'GET'}, headers={'Host': 'example.com:8080'})
    resp = self.app(req.environ, start_response)
    self.assertEquals(resp, '/')