def test_parseCookiesEmptyValue(self):
        """
        L{http.Request.parseCookies} parses cookies with an empty value.
        """
        req = http.Request(DummyChannel(), False)
        req.requestHeaders.setRawHeaders(
            b"cookie", [b'foo='])
        req.parseCookies()
        self.assertEqual(
            req.received_cookies, {b'foo': b''})

        L{http.Request.parseCookies} parses cookies with an empty value.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py