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

        locust = MyLocust()
        self.assertEqual("GET", locust.client.get("http://127.0.0.1:%i/request_method" % self.port).content)
dataset/ETHPy150Open locustio/locust/locust/test/test_locust_class.py/TestWebLocustClass.test_client_get_absolute_url/swapped operands of `%`