def it_should_not_send_an_email_to_the_feedback_address(step): assert world.mails_len() == 0
def it_should_send_an_email_to_the_feedback_address(step): assert world.mails_len() == 1, world.mails_file() m = re.search(r"^To:\s+%s" % settings.FEEDBACK_EMAIL, world.mails_body()[0], re.M) assert m