#NEWLINE# def test_update_progress_with_error( self ) : #NEWLINE# #INDENT# session = self . _create_mock_session ( True , 10 ) #NEWLINE# handle = rw_handles . VmdkWriteHandle ( self , '10.1.2.3' , 443 , 'rp-1' , 'folder-1' , None , 100 ) #NEWLINE# session . invoke_api . side_effect = exceptions . VimException ( None ) #NEWLINE# self . assertRaises ( exceptions . VimException , handle . update_progress )