add websocket flow conversion test

This commit is contained in:
Maximilian Hils 2021-02-03 19:13:24 +01:00
parent faeb9678f1
commit bd0e5989e2
2 changed files with 151 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,7 @@ from mitmproxy import exceptions
["dumpfile-011.mitm", "https://example.com/", 1], ["dumpfile-011.mitm", "https://example.com/", 1],
["dumpfile-018.mitm", "https://www.example.com/", 1], ["dumpfile-018.mitm", "https://www.example.com/", 1],
["dumpfile-019.mitm", "https://webrv.rtb-seller.com/", 1], ["dumpfile-019.mitm", "https://webrv.rtb-seller.com/", 1],
["dumpfile-7-websocket.mitm", "https://echo.websocket.org/", 5],
]) ])
def test_load(tdata, dumpfile, url, count): def test_load(tdata, dumpfile, url, count):
with open(tdata.path("mitmproxy/data/" + dumpfile), "rb") as f: with open(tdata.path("mitmproxy/data/" + dumpfile), "rb") as f: