mitmproxy/test/test_console_common.py

16 lines
372 B
Python
Raw Normal View History

import os
2015-09-21 16:31:30 +00:00
from unittest.case import SkipTest
if os.name == "nt":
raise SkipTest("Skipped on Windows.")
2015-08-01 12:53:34 +00:00
import libmproxy.console.common as common
import tutils
def test_format_flow():
f = tutils.tflow(resp=True)
assert common.format_flow(f, True)
assert common.format_flow(f, True, hostheader=True)
assert common.format_flow(f, True, extended=True)