From c982f579dd755adef2456bc2ad1d3fce06cbfd58 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Fri, 4 Mar 2016 02:32:01 +0530 Subject: [PATCH] Add basic test for har_extractor --- examples/__init__.py | 0 test/mitmproxy/test_har_extractor.py | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 examples/__init__.py create mode 100644 test/mitmproxy/test_har_extractor.py diff --git a/examples/__init__.py b/examples/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/test/mitmproxy/test_har_extractor.py b/test/mitmproxy/test_har_extractor.py new file mode 100644 index 000000000..da68ac4de --- /dev/null +++ b/test/mitmproxy/test_har_extractor.py @@ -0,0 +1,10 @@ +from . import tutils + +from mitmproxy import script, flow +from examples import har_extractor + + +def test_start(): + fm = flow.FlowMaster(None, flow.State()) + ctx = script.ScriptContext(fm) + tutils.raises(ValueError, har_extractor.start, ctx, [])