def send(self, load):
        self.load = load
        if self.flag == 1:
            raise SaltReqTimeoutError
        return True
Mock send method
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/publish_test.py/Channel.send