def test_reset_and_request(self):
     # reset() is called after a fork, or after a socket error. Ensure that
     # a new request is begun if a request was in progress when the reset()
     # occurred, otherwise no request is begun.
     p = Pool((host, port), 10, None, None, False)
     self.assertFalse(p.in_request())
     p.start_request()
     self.assertTrue(p.in_request())
     p.reset()
     self.assertTrue(p.in_request())
     p.end_request()
     self.assertFalse(p.in_request())
     p.reset()
     self.assertFalse(p.in_request())