import mitmproxy.console.common as common
from .. import tutils


@tutils.skip_appveyor
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)
