def make_call(nid, provider, options):
    all_successful = True
    for section in ["biblio", "aliases", "metrics"]:
        api_response = request_provider_item(provider, nid, section)
        is_response_correct = checkItem(provider,
            nid, 
            section,
            api_response,
            options
        )
        if is_response_correct:
            if not options.quiet:            
                print "happy %s" % section
        else:
            if not options.quiet:            
                print "INCORRECT %s" % section
            all_successful = False
        if options.printdata:
            pprint(api_response)
            print("\n")  
    return(all_successful)
dataset/ETHPy150Open Impactstory/total-impact-core/extras/functional_tests/alt_functional_test.py/make_call/original