def sendmail(self, sender, recipient, msg):
        if self.flag == 1:
            raise SMTPRecipientsRefused('All recipients were refused.')
        elif self.flag == 2:
            raise SMTPHeloError('Helo error')
        elif self.flag == 3:
            raise SMTPSenderRefused('Sender Refused')
        elif self.flag == 4:
            raise SMTPDataError('Data error')
        return (sender, recipient, msg)
There have been too many redirects, i.e. in the default config there
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/smtp_test.py/MockSMTPSSL.sendmail--crossover with--dataset/ETHPy150Open retresco/Spyder/src/spyder/core/sink.py/AbstractCrawlUriSink.process_redirect