def METHOD_NAME(self):
    def qs():
        return Addon.objects.filter(type=1)
    view = dec.addon_view_factory(qs=qs)(self.func)
    res = view(self.request, str(self.addon.id))
    self.assert3xx(res, self.slug_path, 301)