diff options
Diffstat (limited to 'test/mitmproxy/data/test_flow_export/locust_task_get.py')
-rw-r--r-- | test/mitmproxy/data/test_flow_export/locust_task_get.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/mitmproxy/data/test_flow_export/locust_task_get.py b/test/mitmproxy/data/test_flow_export/locust_task_get.py new file mode 100644 index 00000000..03821cd8 --- /dev/null +++ b/test/mitmproxy/data/test_flow_export/locust_task_get.py @@ -0,0 +1,20 @@ + @task() + def path(self): + url = self.locust.host + '/path' + + headers = { + 'header': 'qvalue', + 'content-length': '7', + } + + params = { + 'a': ['foo', 'bar'], + 'b': 'baz', + } + + self.response = self.client.request( + method='GET', + url=url, + headers=headers, + params=params, + ) |