'Test redirect to one host and then another.'

def test_redirect_to_new_host(self):

    url = ('/redirect-to-%d' % self.port_two)
    response = self.client.do_request('POST', url)
    self.assertEqual(http.OK, response.status)
    self.assertEqual('success_from_host_two', response.read())
    response = self.client.do_request('POST', '/success')
    self.assertEqual(http.OK, response.status)
    self.assertEqual('success_from_host_one', response.read())
