aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_console_common.py
blob: 29bf7b84d5aef528b5f0e57fafe4d26194961243 (plain)
1
2
3
4
5
6
7
8
9
10
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)