#NEWLINE# def notest_example( capsys , example_test ) : #NEWLINE# #INDENT# ( ex , call , out ) = example_test #NEWLINE# ex . run_commandline ( call ) #NEWLINE# ( captured_out , captured_err ) = capsys . readouterr ( ) #NEWLINE# captured_out = captured_out . split ( '\n' ) #NEWLINE# captured_err = captured_err . split ( '\n' ) #NEWLINE# for out_line in out : #NEWLINE# #INDENT# assert ( out_line in [ captured_out [ 0 ] , captured_err [ 0 ] ] ) #NEWLINE# if ( out_line == captured_out [ 0 ] ) : #NEWLINE# #INDENT# captured_out . pop ( 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# captured_err . pop ( 0 ) #NEWLINE# #UNINDENT# #UNINDENT# assert ( captured_out == [ '' ] ) #NEWLINE# assert ( capsys == [ '' ] )