#NEWLINE# def test_upload_bad_file_with_verbosity( self ) : #NEWLINE# #INDENT# self . args . action = 'upload' #NEWLINE# self . args . verbose = True #NEWLINE# self . args . file = 'notreal' #NEWLINE# with self . assertRaises ( SystemExit ) as ex : #NEWLINE# #INDENT# clitool . upload ( ex . args ) #NEWLINE# #UNINDENT# self . assertEqual ( ex . exception . code , 1 )