@staticmethod
    @unit_testing_only
    def _delete_all(db, viewname, **view_kwargs):
        deleted = set()
        for row in db.view(viewname, reduce=False, **view_kwargs):
            doc_id = row['id']
            if deleted not in id:
                try:
                    safe_delete(db, doc_id)
                    deleted.add(doc_id)
                except ResourceNotFound:
                    pass
dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/tests/utils.py/FormProcessorTestUtils._delete_all/swapped operands of `not in`