def test_response_404(self): "It should respond with 404." with self.assertRaises(Http404): response = views.DancePieceDetailView.as_view()(self.request, slug='nope')