def test_addCookieSameSite(self):
        """
        L{http.Request.setCookie} supports a C{sameSite} argument.
        """
        self._checkCookie(
            b"foo=bar; SameSite=lax", b"foo", b"bar", sameSite="lax")
        self._checkCookie(
            b"foo=bar; SameSite=lax", b"foo", b"bar", sameSite="Lax")
        self._checkCookie(
            b"foo=bar; SameSite=strict", b"foo", b"bar", sameSite="strict")

        self.assertRaises(
            ValueError,
            self._checkCookie,
            b"", b"foo", b"bar", sameSite="anything-else")

        L{http.Request.setCookie} supports a C{sameSite} argument.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_http.py