def test_client_put(self):
        class MyLocust(HttpLocust):
            host = "http://127.0.0.1:%i" % self.port

        locust = MyLocust()
        self.assertEqual("PUT", locust.client.put("/request_method", {"arg":"hello world"}).content)
        self.assertEqual("hello world", locust.client.put("/put", {"arg":"hello world"}).content)
dataset/ETHPy150Open locustio/locust/locust/test/test_locust_class.py/TestWebLocustClass.test_client_put/original