#NEWLINE# def test_upload_download_with_verbosity( self ) : #NEWLINE# #INDENT# self . args . verbose = True #NEWLINE# self . args . action = 'upload' #NEWLINE# clitool . upload ( self . args ) #NEWLINE# self . args . action = 'download' #NEWLINE# clitool . download ( self . args ) #NEWLINE# orig_sha256 = 'bc839c0f9195028d375d652e72a5d08d293eefd22868493185f084bc4aa61d00' #NEWLINE# sha256 = hashlib . sha256 ( ) #NEWLINE# with open ( self . downloadfile , 'rb' ) as f : #NEWLINE# #INDENT# sha256 . update ( f . read ( ) ) #NEWLINE# #UNINDENT# new_sha256 = sha256 . hexdigest ( ) #NEWLINE# self . assertEqual ( orig_sha256 , new_sha256 )