def METHOD_NAME(api, resources, patched_download, worker):
    params = dict(chemical_formula_reduced='Mg', wyckoff_letters=['a'], space_group_number=229, n_sites=1)
    # do initial request
    data_initial = _perform_initial_get_resources(api, params, data_length=88)
    # repeat request
    data_repeat = _get_resources(api, params, is_retrieving_more=False)
    assert len(data_repeat) == 88
    # check if download_time is the same
    # sort data according to id
    data_repeat = sorted(data_repeat, key=lambda x: x['id'])
    for i in range(len(data_initial)):
        assert data_initial[i]['id'] == data_repeat[i]['id']
        # mongodb does not save datetime precisely
        # (https://www.mongodb.com/community/forums/t/for-date-field-dont-save-milliseconds-in-mongodb/110557)
        assert _to_datetime(data_initial[i]['download_time']) == pytest.approx(_to_datetime(data_repeat[i]['download_time']), 0.001)