def test_shortcut_with_absolute_url(self):
        for obj in Author.objects.all():
            short_url = '/views/shortcut/%s/%s/' % (ContentType.objects.get_for_model(Author).id, obj.pk)
            response = self.client.get(short_url)
            self.assertRedirects(response, 'http://testserver%s' % obj.get_absolute_url(),
                                 status_code=302, target_status_code=404)
Can view a shortcut for an Author object that has a get_absolute_url method
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/views/tests/defaults.py/DefaultsTests.test_shortcut_with_absolute_url