#NEWLINE# def test_main( self ) : #NEWLINE# #INDENT# sys . argv = [ '' , 'upload' , 'nothing' ] #NEWLINE# with self . assertRaises ( SystemExit ) as cm : #NEWLINE# #INDENT# clitool . main ( ) #NEWLINE# #UNINDENT# self . assertEqual ( cm . exception . code , 1 ) #NEWLINE# sys . argv = [ '' , 'download' , '--uri' , 'nohash' ] #NEWLINE# with self . assertRaises ( ShardError ) as cm : #NEWLINE# #INDENT# clitool . main ( )