mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-27 02:24:18 +00:00
Adapt to new literal escaping style in pathod
This commit is contained in:
parent
e1d3ebb446
commit
fcbfe4b605
@ -27,7 +27,7 @@ class TestFuzzy(tservers.HTTPProxTest):
|
|||||||
assert p.request(req%self.server.port).status_code == 400
|
assert p.request(req%self.server.port).status_code == 400
|
||||||
|
|
||||||
def test_invalid_upstream(self):
|
def test_invalid_upstream(self):
|
||||||
req = r"get:'http://localhost:%s/p/200:i10,\'+\''"
|
req = r"get:'http://localhost:%s/p/200:i10,\x27+\x27'"
|
||||||
p = self.pathoc()
|
p = self.pathoc()
|
||||||
assert p.request(req%self.server.port).status_code == 502
|
assert p.request(req%self.server.port).status_code == 502
|
||||||
|
|
||||||
@ -35,5 +35,3 @@ class TestFuzzy(tservers.HTTPProxTest):
|
|||||||
req = r'200:d0'
|
req = r'200:d0'
|
||||||
p = self.pathod(req)
|
p = self.pathod(req)
|
||||||
assert p.status_code == 502
|
assert p.status_code == 502
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user