def assertInLogs(self, msg):
        """Assert that `msg' is a substring at least of one logged message.

        :param msg: Substring to look for.
        :return: Log messages where the `msg' was found.
            Raises AssertionError if none.
        """
        in_logs = [record.msg
                   for record in self.handler.buffer if msg in record.msg]
        if not in_logs:
            raise AssertionError(msg % "Expected `%s' is not in logs")
        return in_logs
dataset/ETHPy150Open openstack/rally/rally/common/logging.py/LogCatcher.assertInLogs/swapped operands of `%`