Ticket #6119: 6119.patch

File 6119.patch, 685 bytes (added by moijes12, 8 years ago)
  • twisted/web/test/test_http.py

    === modified file 'twisted/web/test/test_http.py'
     
    14821482            req.received_cookies, {b"test": b'"lemur"', b"test2": b'"panda"'})
    14831483
    14841484
     1485    def test_parseCookiesNoCookie(self):
     1486        """
     1487        L{http.Request.parseCookies} returns None if the Cookies are not part
     1488        of the header.
     1489        """
     1490        req = http.Request(DummyChannel(), None)
     1491        self.assertEqual(req.parseCookies(), None)
     1492
     1493
    14851494    def test_connectionLost(self):
    14861495        """
    14871496        L{http.Request.connectionLost} closes L{Request.content} and drops the