#NEWLINE# def _CreateMockGraph( self , lparams , lidx_ins ) : #NEWLINE# #INDENT# entry = mock . create_autospec ( basic_blocks . BasicBlock ) #NEWLINE# rpo = [ entry ] #NEWLINE# node_num = 1 #NEWLINE# for ( idx , lins ) in entry : #NEWLINE# #INDENT# rpo . append ( self . _CreateMockNode ( ( 'n%d' % node_num ) , idx , lins ) ) #NEWLINE# node_num += 1 #NEWLINE# #UNINDENT# G = mock . create_autospec ( graph . Graph ) #NEWLINE# G . rpo = rpo #NEWLINE# return G