Locust, upload test
<p>I am new to locust and trying to make my first test, upload simple file with headers and path, and cant seem to manage to make it work</p>

<p>will be glad for any help, thanks!</p>

<p>my current test is:</p>

<pre><code>class UserBehavior(TaskSet):
        @task
        def post_img(self):
                self.client.headers['1'] = "1"
                self.client.headers['1'] = "1"
                test_file = 'PATH/TO.FILE'
                self.client.post("address", files={'file': open(test_file, 'rb')})


class WebsiteUser(HttpLocust):
        host = 'IP'
        task_set = UserBehavior
        min_wait = 100
        max_wait = 300
</code></pre>