def makeCookieJar(self):
        """
        @return: a C{cookielib.CookieJar} with some sample cookies
        """
        cookieJar = cookielib.CookieJar()
        reqres = self.addCookies(
            cookieJar,
            b'http://example.com:1234/foo?bar',
            [b'foo=1; cow=moo; Path=/foo; Comment=hello',
             b'bar=2; Comment=goodbye'])
        return cookieJar, reqres

        @return: a C{cookielib.CookieJar} with some sample cookies
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_agent.py