def test_response_404_kind_slug(self):
"It should raise 404 if there's no Event with that kind_slug."
with self.assertRaises(Http404):
response = views.EventDetailView.as_view()(
self.request, kind_slug='nope', slug='my-gig')
评论列表
文章目录