コード例 #1
0
 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))
コード例 #2
0
 def test_patch(self):
     flow = tflow.tflow(req=req_patch())
     python_equals("data/test_flow_export/python_patch.py", export.python_code(flow))
コード例 #3
0
 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))
コード例 #4
0
 def test_get(self):
     flow = tflow.tflow(req=req_get())
     python_equals("data/test_flow_export/python_get.py", export.python_code(flow))
コード例 #5
0
 def test_patch(self):
     flow = tflow.tflow(req=req_patch())
     python_equals("data/test_flow_export/python_patch.py",
                   export.python_code(flow))
コード例 #6
0
 def test_post(self):
     flow = tflow.tflow(req=req_post())
     python_equals("mitmproxy/data/test_flow_export/python_post.py", export.python_code(flow))
コード例 #7
0
 def test_get(self):
     flow = tflow.tflow(req=req_get())
     python_equals("data/test_flow_export/python_get.py",
                   export.python_code(flow))
コード例 #8
0
 def test_post(self):
     flow = tutils.tflow(req=req_post())
     python_equals("data/test_flow_export/python_post.py",
                   export.python_code(flow))
コード例 #9
0
ファイル: test_export.py プロジェクト: zengchunyun/mitmproxy
 def test_patch(self, patch_request):
     python_equals("mitmproxy/data/test_flow_export/python_patch.py",
                   export.python_code(patch_request))
コード例 #10
0
ファイル: test_export.py プロジェクト: zengchunyun/mitmproxy
 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))
コード例 #11
0
ファイル: test_export.py プロジェクト: zengchunyun/mitmproxy
 def test_post(self, post_request):
     python_equals("mitmproxy/data/test_flow_export/python_post.py",
                   export.python_code(post_request))
コード例 #12
0
ファイル: test_export.py プロジェクト: zengchunyun/mitmproxy
 def test_get(self, get_request):
     python_equals("mitmproxy/data/test_flow_export/python_get.py",
                   export.python_code(get_request))