#NEWLINE# @ mock . patch ( 'random.choice' ) #NEWLINE# @ mock . patch ( 'oppy.path.path.guardFilter' , return_value = True ) #NEWLINE# def test_selectGuardNode( self , mock_gf , mock_rc ) : #NEWLINE# #INDENT# cons_rel_stats = 'cons_rel_stats' #NEWLINE# descriptors = 'descriptors' #NEWLINE# guards = [ 'guard' ] #NEWLINE# fast = 'fast' #NEWLINE# stable = 'stable' #NEWLINE# exit_desc = 'exit_desc' #NEWLINE# exit_status_entry = 'exit_status_entry' #NEWLINE# _ = path . selectGuardNode ( cons_rel_stats , descriptors , guards , fast , stable , exit_desc , exit_status_entry ) #NEWLINE# mock_gf . assert_called_once_with ( 'guard' , cons_rel_stats , descriptors , fast , stable , exit_desc , exit_status_entry ) #NEWLINE# mock_rc . assert_called_once_with ( [ 'guard' ] )