aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_export_flow.py
blob: 867c209a7a133340e7279fd31f6f14fffbe02b18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import netlib.tutils
from libmproxy import flow_export
from . import tutils

req_get = netlib.tutils.treq(
    method='GET',
    headers=None,
    content=None,
)

req_post = netlib.tutils.treq(
    method='POST',
    headers=None,
)


def test_request_simple():
    flow = tutils.tflow(req=req_get)
    assert flow_export.curl_command(flow)

    flow = tutils.tflow(req=req_post)
    assert flow_export.curl_command(flow)