def METHOD_NAME():
    """
    Test linkage management command for records that have both a fain and uri
    """
    models_to_mock = [
        {"model": AwardSearch, "award_id": 999, "fain": "RANDOM_FAIN_999", "uri": "RANDOM_URI_999"},
        {"model": AwardSearch, "award_id": 1999, "fain": "RANDOM_FAIN_1999", "uri": "RANDOM_URI_1999"},
        {
            "model": FinancialAccountsByAwards,
            "financial_accounts_by_awards_id": 777,
            "fain": "RANDOM_FAIN_999",
            "uri": "RANDOM_URI_DNE",
        },
        {
            "model": FinancialAccountsByAwards,
            "financial_accounts_by_awards_id": 1777,
            "fain": "RANDOM_FAIN_DNE",
            "uri": "RANDOM_URI_1999",
        },
    ]
    for entry in models_to_mock:
        baker.make(entry.pop("model"), **entry)
    # use the award_search table because the award_search_temp table is not present in testing
    call_command("update_file_c_linkages", "--recalculate-linkages", "--file-d-table=award_search")
    expected_results = 999
    file_c_award_fain = FinancialAccountsByAwards.objects.filter(financial_accounts_by_awards_id=777).first()
    assert file_c_award_fain is not None
    assert expected_results == file_c_award_fain.award_id
    expected_results = 1999
    file_c_award_uri = FinancialAccountsByAwards.objects.filter(financial_accounts_by_awards_id=1777).first()
    assert file_c_award_uri is not None
    assert expected_results == file_c_award_uri.award_id