def get_all_docs_with_doc_types(db, doc_types):
    if isinstance(doc_types, basestring):
        raise TypeError('get_all_docs_with_doc_types requires doc_types '
                        'to be a sequence of strings, not {!r}'.format(doc_types))
    for doc_type in doc_types:
        results = paginate_view(
            db, 'all_docs/by_doc_type',
            chunk_size=100, startkey=[doc_type], endkey=[doc_type, {}],
            include_docs=True, reduce=False)
        for result in results:
            yield result['doc']
Tests that user who has been removed from a viewpoint can see limited metadata.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/dbaccessors/couchapps/all_docs.py/get_all_docs_with_doc_types--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/query_followed_test.py/QueryFollowedTestCase.testRemovedUser