def test_notifications_dashboard_redirects_for_logged_out_users(self):
        response = self.testapp.get('/notifications_dashboard')
        self.assertEqual(response.status_int, 302)
        # This should redirect to the login page.
        self.assertIn('signup', response.headers['location'])
        self.assertIn('notifications_dashboard', response.headers['location'])

        self.login('reader@example.com')
        response = self.testapp.get('/notifications_dashboard')
        # This should redirect the user to complete signup.
        self.assertEqual(response.status_int, 302)
        self.logout()
Test the logged-out view of the notifications dashboard.
dataset/ETHPy150Open oppia/oppia/core/controllers/home_test.py/HomePageTest.test_notifications_dashboard_redirects_for_logged_out_users