Esempio n. 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))
Esempio n. 2
0
 def test_patch(self):
     flow = tflow.tflow(req=req_patch())
     python_equals("data/test_flow_export/locust_patch.py", export.locust_code(flow))
Esempio n. 3
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))
Esempio n. 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))
Esempio n. 5
0
 def test_get(self):
     flow = tflow.tflow(req=req_get())
     python_equals("mitmproxy/data/test_flow_export/locust_get.py", export.locust_code(flow))
Esempio n. 6
0
 def test_get(self):
     flow = tutils.tflow(req=req_get())
     python_equals("data/test_flow_export/locust_get.py",
                   export.locust_code(flow))
Esempio n. 7
0
 def test_patch(self, patch_request):
     python_equals("mitmproxy/data/test_flow_export/locust_patch.py",
                   export.locust_code(patch_request))
Esempio n. 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))
Esempio n. 9
0
 def test_get(self, get_request):
     python_equals("mitmproxy/data/test_flow_export/locust_get.py",
                   export.locust_code(get_request))