def test_all_collections():
    # This generator yields test functions for every collection
    # on every available resource, except those which have
    # been blacklisted.
    session = boto3.session.Session()
    for service_name in session.get_available_resources():
        resource = session.resource(
            service_name,
            region_name=REGION_MAP.get(service_name, 'us-west-2'))

        for key in dir(resource):
            if key in BLACKLIST.get(service_name, []):
                continue

            value = getattr(resource, key)
            if isinstance(value, CollectionManager):
                yield _test_collection, service_name, key, value
dataset/ETHPy150Open boto/boto3/tests/integration/test_collections.py/test_all_collections/original