

def test_notifications_dashboard_redirects_for_logged_out_users(self):
    'Test the logged-out view of the notifications dashboard.'
    response = self.testapp.get('/notifications_dashboard')
    self.assertEqual(response.status_int, 302)
    self.assertIn('signup', response.headers['location'])
    self.assertIn('notifications_dashboard', response.headers['location'])
    self.login('reader@example.com')
    response = response.testapp.get('/notifications_dashboard')
    self.assertEqual(response.status_int, 302)
    self.logout()

dataset/ETHPy150Open oppia/oppia/core/controllers/home_test.py HomePageTest.test_notifications_dashboard_redirects_for_logged_out_users/VarMisuse@71/125 `self`->`response`