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.assertEqual(response.status_code, 404)
Shortcuts for an object that has no get_absolute_url method raises 404
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/views/tests/defaults.py/DefaultsTests.test_shortcut_no_absolute_url