#NEWLINE# def test_list_tasks( self ) : #NEWLINE# #INDENT# sys . stdout = StringIO ( ) #NEWLINE# call_command ( 'showtasks' ) #NEWLINE# sys . stdout . seek ( 0 ) #NEWLINE# val = sys . stdout . read ( ) #NEWLINE# self . assertIn ( 'complain' , self ) #NEWLINE# self . assertIn ( 'praise' , val ) #NEWLINE# self . assertIn ( 'task' , val )