#NEWLINE# def test_get_a_local_process_for_agent_res_id( self ) : #NEWLINE# #INDENT# pmock = Mock ( ) #NEWLINE# pmock . process_type = 'agent' #NEWLINE# pmock . resource_type = sentinel . rtype #NEWLINE# pmock2 = Mock ( ) #NEWLINE# pmock2 . process_type = 'agent' #NEWLINE# pmock2 . resource_type = sentinel . rtype2 #NEWLINE# self . pm . procs = { #NEWLINE# #INDENT# 'one' : pmock2 , #NEWLINE# 'two' : pmock2 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEquals ( self . pm . get_a_local_process ( sentinel . rtype2 ) , pmock2 )