#NEWLINE# def test_start_with_image_service_show_exception( self ) : #NEWLINE# #INDENT# writer = self . _create_image_writer ( ) #NEWLINE# self . image_service . show . side_effect = RuntimeError ( ) #NEWLINE# writer . start ( ) #NEWLINE# self . assertRaises ( exceptions . ImageTransferException , writer . wait ) #NEWLINE# self . image_service . update . assert_called_once_with ( self . context , self . image_id , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , data = self . input_file ) #NEWLINE# self . image_service . show . assert_called_once_with ( self . context , self . image_id )