#NEWLINE# @ mock . patch . object ( seamicro , '_parse_driver_info' , autospec = True ) #NEWLINE# def test_vendor_passthru_validate_good( self , mock_info ) : #NEWLINE# #INDENT# with task_manager . acquire ( self . context , self . node [ 'uuid' ] , shared = True ) as task : #NEWLINE# #INDENT# for method in task . driver . vendor . vendor_routes : #NEWLINE# #INDENT# task . driver . vendor . validate ( task , ** { #NEWLINE# #INDENT# 'method' : method , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . assertEqual ( len ( task . driver . vendor . vendor_routes ) , mock_info . call_count )