Add basic test for har_extractor

This commit is contained in:
Shadab Zafar 2016-03-04 02:32:01 +05:30
parent 1f41719bbc
commit c982f579dd
2 changed files with 10 additions and 0 deletions

0
examples/__init__.py Normal file
View File

View File

@ -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, [])