mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
Remove redundant tests
This commit is contained in:
parent
39f5108400
commit
7eade1ef7c
@ -113,18 +113,6 @@ class TestStickyCookieState:
|
|||||||
s.handle_response(f)
|
s.handle_response(f)
|
||||||
assert not s.jar.keys()
|
assert not s.jar.keys()
|
||||||
|
|
||||||
# or by setting Max-Age to 0
|
|
||||||
s, f = self._response(*c)
|
|
||||||
f.response.headers["Set-Cookie"] = "duffer=; Max-Age=0"
|
|
||||||
s.handle_response(f)
|
|
||||||
assert not s.jar.keys()
|
|
||||||
|
|
||||||
# or both
|
|
||||||
s, f = self._response(*c)
|
|
||||||
f.response.headers["Set-Cookie"] = "duffer=; Expires=Thu, 01-Jan-1970 00:00:00 GMT; Max-Age=0"
|
|
||||||
s.handle_response(f)
|
|
||||||
assert not s.jar.keys()
|
|
||||||
|
|
||||||
def test_request(self):
|
def test_request(self):
|
||||||
s, f = self._response("SSID=mooo", b"www.google.com")
|
s, f = self._response("SSID=mooo", b"www.google.com")
|
||||||
assert "cookie" not in f.request.headers
|
assert "cookie" not in f.request.headers
|
||||||
|
Loading…
Reference in New Issue
Block a user