def METHOD_NAME(self):
    self.addon.current_version.delete()
    view = dec.addon_view(  # Not available on the factory
        self.func, qs=Addon.objects.all, include_deleted_when_checking_versions=True
    )
    res = view(self.request, self.addon.slug)
    assert res == mock.sentinel.OK