def test_response_404(self):
"It should raise 404 if there's no PublicationSeries with that slug."
with self.assertRaises(Http404):
response = views.PublicationSeriesDetailView.as_view()(
self.request, slug='nope')
评论列表
文章目录