#NEWLINE# def test_empty_args( self ) : #NEWLINE# #INDENT# 'Check that empty args triggers help.' #NEWLINE# parser = make_argparser ( ) #NEWLINE# info = StringInfo ( ) #NEWLINE# with info . open ( 'w' ) as f : #NEWLINE# #INDENT# status = non_exiting_main ( parser , [ ] , stdout = f ) #NEWLINE# #UNINDENT# self . assertEqual ( status , 0 ) #NEWLINE# self . assertStartsWith ( self . value , 'usage: ' )