@step((STEP_PREFIX + 'sending email does not work'))
def email_broken(step):
 mail.EmailMessage.send = broken_send

@ step ( ( STEP_PREFIX + 'sending email does not work' ) ) def email_broken ( step ) : mail . EmailMessage . send = broken_send
break email sending .