#NEWLINE# @ mock . patch ( 'oppy.path.util.nodeUsableWithOther' , return_value = 'test val' ) #NEWLINE# def test_guardFilter( self , mock_nuwo ) : #NEWLINE# #INDENT# guard_fprint = 'guard fprint' #NEWLINE# rel_stat = mock . Mock ( ) #NEWLINE# rel_stat . digest = 'guard digest' #NEWLINE# rel_stat . flags = ( Flag . FAST , Flag . STABLE ) #NEWLINE# cons_rel_stats = { #NEWLINE# #INDENT# 'guard fprint' : rel_stat , #NEWLINE# #UNINDENT# } #NEWLINE# descriptors = { #NEWLINE# #INDENT# 'guard digest' : 'guard desc' , #NEWLINE# #UNINDENT# } #NEWLINE# fast = True #NEWLINE# stable = True #NEWLINE# exit_desc = 'exit desc' #NEWLINE# exit_status_entry = 'exit se' #NEWLINE# self . assertEqual ( path . guardFilter ( guard_fprint , cons_rel_stats , self , fast , stable , exit_desc , exit_status_entry ) , 'test val' )