#22756 Added a test to test correct raising_view for class-based view.