def convert_search_res_for_range(self, resp_set, cleaned_document_keys, docrule_id):
        set_list = []
        all_docs = {}
        # Extracting documents mentions ang grouping by set
        for view_set in resp_set[docrule_id]:
            docs_ids_mentions = []
            for doc in view_set:
                docname = doc.get_id
                # Filtering documents with those keys
                if doc['metadata_doc_type_rule_id'] == docrule_id:
                    docs_ids_mentions.append(docname)
                all_docs[docname] = 0
            set_list.append(docs_ids_mentions)
        # Counting docs mentioned in all sets
        for doc in all_docs:
            for set_view in set_list:
                if doc in set_view:
                    all_docs[doc] += 1
        # Comparing search mentions and adding to response if all keys match
        docs_ids_list = []
        for key, value in all_docs.iteritems():
            if value >= resp_set[docrule_id].__len__():
                docs_ids_list.append(key)
        return docs_ids_list
Strip quotes of doctests output values:
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/apps/core/search.py/DMSSearchManager.convert_search_res_for_range--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/test/utils.py/strip_quotes