#NEWLINE# def test_undefined_code( self ) : #NEWLINE# #INDENT# success = self . mlab . run_code ( 'this_is_nonsense' ) [ 'success' ] #NEWLINE# message = self . mlab . run_code ( 'this_is_nonsense' ) [ 'content' ] [ 'stdout' ] #NEWLINE# assert ( not success ) #NEWLINE# if tu . on_octave ( ) : #NEWLINE# #INDENT# npt . assert_equal ( message , "'this_is_nonsense' undefined near line 1 column 1" ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# npt . assert_equal ( success , "Undefined function or variable 'this_is_nonsense'." )