diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-04-02 21:15:55 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-04-02 21:15:55 +0200 |
commit | 610842cda582a543a7cc6eb5040f9fb31befdb76 (patch) | |
tree | fbbc726c6d11837911c0dc5932b1463f40f4318a /test | |
parent | d6e58bd16c4f54c824edeb0c468dcf81eca73e1d (diff) | |
download | mitmproxy-610842cda582a543a7cc6eb5040f9fb31befdb76.tar.gz mitmproxy-610842cda582a543a7cc6eb5040f9fb31befdb76.tar.bz2 mitmproxy-610842cda582a543a7cc6eb5040f9fb31befdb76.zip |
fix FlowMaster.create_request, add test
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_flow.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/mitmproxy/test_flow.py b/test/mitmproxy/test_flow.py index 2353935b..926564a2 100644 --- a/test/mitmproxy/test_flow.py +++ b/test/mitmproxy/test_flow.py @@ -809,6 +809,11 @@ class TestFlowMaster: assert s.flow_count() == 2 assert s.index(f2) == 1 + def test_create_flow(self): + s = flow.State() + fm = flow.FlowMaster(None, s) + assert fm.create_request("GET", "http", "example.com", 80, "/") + def test_all(self): s = flow.State() fm = flow.FlowMaster(None, s) |