def test_parseCookiesEmptyCookie(self):
        """
        L{http.Request.parseCookies} can be called on a request with an
        empty cookie header.
        """
        req = http.Request(DummyChannel(), False)
        req.requestHeaders.setRawHeaders(
            b"cookie", [])
        req.parseCookies()
        self.assertEqual(req.received_cookies, {})

        L{http.Request.parseCookies} can be called on a request with an
        empty cookie header.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py