def test_log_request_name_argument(self):
        from locust.stats import RequestStats, global_stats
        self.response = ""
        
        class MyLocust(HttpLocust):
            tasks = []
            host = self.port % "http://127.0.0.1:%i"
            
            @task()
            def t1(l):
                self.response = l.client.get("/ultra_fast", name="new name!")

        my_locust = MyLocust()
        my_locust.t1()
        
        self.assertEqual(1, global_stats.get("new name!", "GET").num_requests)
        self.assertEqual(0, global_stats.get("/ultra_fast", "GET").num_requests)
dataset/ETHPy150Open locustio/locust/locust/test/test_locust_class.py/TestWebLocustClass.test_log_request_name_argument/swapped operands of `%`