aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_har_extractor.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/mitmproxy/test_har_extractor.py b/test/mitmproxy/test_har_extractor.py
new file mode 100644
index 00000000..da68ac4d
--- /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, [])