2013-06-17 14:48:06 +00:00
|
|
|
import os
|
2015-09-21 16:31:30 +00:00
|
|
|
from unittest.case import SkipTest
|
2013-06-17 14:48:06 +00:00
|
|
|
if os.name == "nt":
|
|
|
|
raise SkipTest("Skipped on Windows.")
|
|
|
|
|
2015-08-01 12:53:34 +00:00
|
|
|
|
2013-03-17 04:31:35 +00:00
|
|
|
import libmproxy.console.common as common
|
2016-02-02 12:25:31 +00:00
|
|
|
from . import tutils
|
2013-03-17 04:31:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
def test_format_flow():
|
2014-09-03 14:57:56 +00:00
|
|
|
f = tutils.tflow(resp=True)
|
2013-03-17 04:31:35 +00:00
|
|
|
assert common.format_flow(f, True)
|
|
|
|
assert common.format_flow(f, True, hostheader=True)
|
|
|
|
assert common.format_flow(f, True, extended=True)
|