Beispiel #1
0
 def test_post(self):
     p = req_post()
     p.content = b'content'
     p.headers = ''
     flow = tflow.tflow(req=p)
     python_equals("data/test_flow_export/locust_post.py",
                   export.locust_code(flow))
 def test_patch(self):
     flow = tflow.tflow(req=req_patch())
     python_equals("data/test_flow_export/locust_patch.py", export.locust_code(flow))
 def test_post(self):
     p = req_post()
     p.content = b'content'
     p.headers = ''
     flow = tflow.tflow(req=p)
     python_equals("data/test_flow_export/locust_post.py", export.locust_code(flow))
Beispiel #4
0
 def test_patch(self):
     flow = tflow.tflow(req=req_patch())
     python_equals("data/test_flow_export/locust_patch.py",
                   export.locust_code(flow))
 def test_get(self):
     flow = tflow.tflow(req=req_get())
     python_equals("mitmproxy/data/test_flow_export/locust_get.py", export.locust_code(flow))
 def test_get(self):
     flow = tutils.tflow(req=req_get())
     python_equals("data/test_flow_export/locust_get.py",
                   export.locust_code(flow))
Beispiel #7
0
 def test_patch(self, patch_request):
     python_equals("mitmproxy/data/test_flow_export/locust_patch.py",
                   export.locust_code(patch_request))
Beispiel #8
0
 def test_post(self, post_request):
     post_request.request.content = b'content'
     post_request.request.headers.clear()
     python_equals("mitmproxy/data/test_flow_export/locust_post.py",
                   export.locust_code(post_request))
Beispiel #9
0
 def test_get(self, get_request):
     python_equals("mitmproxy/data/test_flow_export/locust_get.py",
                   export.locust_code(get_request))