def test_post_json(self): p = req_post() p.content = b'{"name": "example", "email": "*****@*****.**"}' p.headers = Headers(content_type="application/json") flow = tflow.tflow(req=p) python_equals("data/test_flow_export/python_post_json.py", export.python_code(flow))
def test_patch(self): flow = tflow.tflow(req=req_patch()) python_equals("data/test_flow_export/python_patch.py", export.python_code(flow))
def test_get(self): flow = tflow.tflow(req=req_get()) python_equals("data/test_flow_export/python_get.py", export.python_code(flow))
def test_post(self): flow = tflow.tflow(req=req_post()) python_equals("mitmproxy/data/test_flow_export/python_post.py", export.python_code(flow))
def test_post(self): flow = tutils.tflow(req=req_post()) python_equals("data/test_flow_export/python_post.py", export.python_code(flow))
def test_patch(self, patch_request): python_equals("mitmproxy/data/test_flow_export/python_patch.py", export.python_code(patch_request))
def test_post_json(self, post_request): post_request.request.content = b'{"name": "example", "email": "*****@*****.**"}' post_request.request.headers = Headers(content_type="application/json") python_equals("mitmproxy/data/test_flow_export/python_post_json.py", export.python_code(post_request))
def test_post(self, post_request): python_equals("mitmproxy/data/test_flow_export/python_post.py", export.python_code(post_request))
def test_get(self, get_request): python_equals("mitmproxy/data/test_flow_export/python_get.py", export.python_code(get_request))