def check_number_of_calls(object_with_method, method_name, maximum_calls, minimum_calls=1):
 return check_sum_of_calls(object_with_method, [method_name], maximum_calls, minimum_calls)

def check_number_of_calls ( object_with_method , method_name , maximum_calls , minimum_calls = 1 ) : return check_sum_of_calls ( object_with_method , [ method_name ] , maximum_calls , minimum_calls )
instruments the given method on the given object to verify the number of calls to the method is less than or equal to the expected maximum_calls and greater than or equal to the expected minimum_calls .