'Shortcuts for an object that has no get_absolute_url method raises 404'

def test_shortcut_no_absolute_url(self):

    for obj in Article.objects.all():
        short_url = ('/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Article).id, obj.pk))
        response = self.client.get(short_url)
        self.assertEquals(response.status_code, 404)
