def METHOD_NAME(db, oaisets):
    """Test OAI sets and communities matching predicate."""
    # Should ignore the custom "extra" OAI Set
    assert comm_sets_match(make_rec(['c1', 'c2'],
                                    ['extra', 'user-c1', 'user-c2', ]))
    # Should also ignore the custom "user-extra" spec which is NOT
    # community-based but has a prefix as such
    assert comm_sets_match(make_rec(['c1', 'c2'],
                                    ['user-c1', 'user-c2', 'user-extra', ]))
    assert comm_sets_match(make_rec([], ['extra']))
    assert comm_sets_match(make_rec([], []))
    assert not comm_sets_match(make_rec(['c2'], ['extra']))
    assert not comm_sets_match(make_rec(['c2'], ['user-c1']))
    assert not comm_sets_match(make_rec(['c1'], []))
    r = {
        'communities': ['c1'],
        '_oai': {
            'id': 'some_id_1234',
            'updated': 'timestamp'
        }
    }
    assert not comm_sets_match(r)