#NEWLINE# @ trap #NEWLINE# def use_binary_basename_when_invoked_absolutely( self ) : #NEWLINE# #INDENT# Program ( ) . run ( '/usr/local/bin/myapp --help' , exit = False ) #NEWLINE# stdout = sys . stdout . getvalue ( ) #NEWLINE# assert_contains ( stdout , 'myapp [--core-opts]' ) #NEWLINE# assert_not_contains ( stdout , '/usr/local/bin' )