def test_manager_soft_delete_addons(self):
        # Normal RQT object.
        RereviewQueueTheme.objects.create(
            theme=addon_factory(type=amo.ADDON_PERSONA).persona, header='',
            footer='')

        # Deleted add-on RQT object.
        addon = addon_factory(type=amo.ADDON_PERSONA)
        RereviewQueueTheme.objects.create(
            theme=addon.persona, header='', footer='')
        addon.delete()

        assert RereviewQueueTheme.objects.count() == 1
        assert RereviewQueueTheme.unfiltered.count() == 2
Test manager excludes soft delete add-ons.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/editors/tests/test_models.py/TestRereviewQueueTheme.test_manager_soft_delete_addons