@FileSystem.in_directory(current_directory, 'django', 'bamboo')
def test_mail_fail():
 (status, out) = run_scenario('leaves', 'mock-failure', 1)
 assert_not_equals(status, 0)
 assert ('SMTPException: Failure mocked by lettuce' in out)

@ FileSystem . in_directory ( current_directory , 'django' , 'bamboo' ) def test_mail_fail ( ) : ( status , out ) = run_scenario ( 'leaves' , 'mock-failure' , 1 ) assert_not_equals ( status , 0 ) assert ( 'SMTPException: Failure mocked by lettuce' in out )
mock mail failure dies with error .