def test_api_versions_synced_with_botocore(api_version_args):
    """Verify both boto3 and botocore clients stay in sync."""
    service_name, botocore_session, boto3_session = api_version_args
    resource = boto3_session.resource(service_name)
    boto3_api_version = resource.meta.client.meta.service_model.api_version
    client = botocore_session.create_client(
        service_name,
        region_name='us-east-1',
        aws_access_key_id='foo',
        aws_secret_access_key='bar',
    )
    botocore_api_version = client.meta.service_model.api_version
    err = (
        f"Different latest API versions found for {service_name}: "
        f"{botocore_api_version} (botocore), {boto3_api_version} (boto3)\n"
    )
    assert botocore_api_version == boto3_api_version, err
Verify both boto3 and botocore clients stay in sync.
tests/functional/test_smoke.py