@FileSystem.in_directory(current_directory, 'django', 'bamboo')
def test_mail_content():
 (status, out) = run_scenario('leaves', 'content', 1)
 assert_equals(status, 0, out)
 (status, out) = run_scenario('leaves', 'content', 2)
 assert_equals(status, 0, out)
 (status, out) = run_scenario('leaves', 'content', 3)
 assert_not_equals(status, 0)
 assert ('An email contained expected text in the body' in out)

@ FileSystem . in_directory ( current_directory , 'django' , 'bamboo' ) def test_mail_content ( ) : ( status , out ) = run_scenario ( 'leaves' , 'content' , 1 ) assert_equals ( status , 0 , out ) ( status , out ) = run_scenario ( 'leaves' , 'content' , 2 ) assert_equals ( status , 0 , out ) ( status , out ) = run_scenario ( 'leaves' , 'content' , 3 ) assert_not_equals ( status , 0 ) assert ( 'An email contained expected text in the body' in out )
mail content is checked through lettuce steps .