def test_redirect_to_new_host(self):
        url = "/redirect-to-%d" % self.port_two
        response = self.client.do_request("POST", url)

        self.assertEquals(200, response.status)
        self.assertEquals("success_from_host_two", response.read())

        response = self.client.do_request("POST", "/success")
        self.assertEquals(200, response.status)
        self.assertEquals("success_from_host_one", response.read())
Test redirect to one host and then another.
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/tests/functional/test_client_redirects.py/TestClientRedirects.test_redirect_to_new_host