#NEWLINE# def test_is_local_service_process_name_matches_but_type_doesnt( self ) : #NEWLINE# #INDENT# pmock = Mock ( ) #NEWLINE# pmock . name = sentinel . name #NEWLINE# pmock . process_type = 'simple' #NEWLINE# pmock2 = Mock ( ) #NEWLINE# pmock2 . name = sentinel . name2 #NEWLINE# pmock2 . process_type = 'notservice' #NEWLINE# pmock3 = Mock ( ) #NEWLINE# pmock3 . name = sentinel . name3 #NEWLINE# pmock3 . process_type = 'notservice' #NEWLINE# self . pm . procs = { #NEWLINE# #INDENT# 'one' : pmock , #NEWLINE# 'two' : pmock2 , #NEWLINE# 'three' : pmock2 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertFalse ( self . pm . is_local_service_process ( sentinel . name3 ) )