阅读背景:

奇怪的行为mock的side_effect函数

来源:互联网 

I have this piece of code:

我有这段代码:

import postie

def send_mail(self, outbox):
    try:
        postie.postmail(self.dbname, outbox)
    except postie.EmailDeliveryException:
        self.logger.error('Fail to send mail’)
        return False
    return True
import p



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: