def payment()

in src/loadgenerator/locustfile.py [0:0]


        def payment(self, amount=None):
            """
            POST to /payment, sending money to other account
            """
            if amount is None:
                amount = random() * 1000
            transaction = {"account_num": choice(TRANSACTION_ACCT_LIST),
                           "amount": amount,
                           "uuid": generate_username()}
            with self.client.post("/payment",
                                  data=transaction,
                                  catch_response=True) as response:
                if response.url is None or "failed" in response.url:
                    response.failure("payment failed")