'AuthorCustomDetail overrides get() and ensures that
SingleObjectMixin.get_context_object_name() always uses the obj
parameter instead of self.object.'

def test_custom_detail(self):

    res = self.client.get(('/detail/author/%s/custom_detail/' % self.author1.pk))
    self.assertEqual(res.status_code, 200)
    self.assertEqual(res.context['custom_author'], self.author1)
    self.assertNotIn('author', res.context)
    self.assertNotIn('object', res.context)
    self.assertTemplateUsed(res, 'generic_views/author_detail.html')
