def test_no_base_port_in_host(self):
        """
        If no base is indicated, and the host header is used to resolve
        the base, it should rely on the host header for the port also.
        """
        headers = {'Host': 'localhost:8080'}.items()
        self.getPage('/base_no_base', headers=headers)
        self.assertBody('http://localhost:8080')

        If no base is indicated, and the host header is used to resolve
        the base, it should rely on the host header for the port also.
        
cherrypy/test/test_proxy.py