#NEWLINE# def test_parse_with_return_raises_error( self ) : #NEWLINE# #INDENT# ' Test that an exception is raised with invalid return args.' #NEWLINE# ui = Mock ( ) #NEWLINE# args = 'return' #NEWLINE# re = ( 'Return breakpoints require a function name ' + 'to be specified' ) #NEWLINE# self . assertRaisesRegexp ( vdebug . breakpoint . BreakpointError , re , vdebug . breakpoint . Breakpoint . parse , ui , args )