diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:46 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-02-15 14:58:46 +0100 |
commit | 33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04 (patch) | |
tree | 31914a601302579ff817504019296fd7e9e46765 /test/test_flow_format_compat.py | |
parent | 36f34f701991b5d474c005ec45e3b66e20f326a8 (diff) | |
download | mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.tar.gz mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.tar.bz2 mitmproxy-33fa49277a821b9d38e8c9bf0bcf2adcfa2f6f04.zip |
move mitmproxy
Diffstat (limited to 'test/test_flow_format_compat.py')
-rw-r--r-- | test/test_flow_format_compat.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/test_flow_format_compat.py b/test/test_flow_format_compat.py deleted file mode 100644 index 232f5473..00000000 --- a/test/test_flow_format_compat.py +++ /dev/null @@ -1,17 +0,0 @@ -from libmproxy.flow import FlowReader, FlowReadError -from . import tutils - - -def test_load(): - with open(tutils.test_data.path("data/dumpfile-013"), "rb") as f: - flow_reader = FlowReader(f) - flows = list(flow_reader.stream()) - assert len(flows) == 1 - assert flows[0].request.url == "https://example.com/" - - -def test_cannot_convert(): - with open(tutils.test_data.path("data/dumpfile-012"), "rb") as f: - flow_reader = FlowReader(f) - with tutils.raises(FlowReadError): - list(flow_reader.stream()) |