aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_common.py
blob: d798e4dc674834cb0c31a2d3d998e0d90fcd726d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os
from nose.plugins.skip import SkipTest
if os.name == "nt":
    raise SkipTest("Skipped on Windows.")

import libmproxy.console.common as common
from libmproxy import utils, flow, encoding
import tutils


def test_format_flow():
    f = tutils.tflow_full()
    assert common.format_flow(f, True)
    assert common.format_flow(f, True, hostheader=True)
    assert common.format_flow(f, True, extended=True)