def on_response(self, response):
        self.resp_count += 1
        if self.resp_count < 2:
            return

        self.stop()
        self.got_response = True

        if not response.cookies["foo"].value == "bar":
            self.response_valid = False
dataset/ETHPy150Open ecdavis/pants/pants/test/http/test_http_client.py/CookieTest.on_response/original