'Test that generation of ID Token does not work for anonymous user.'

@patch.dict('django.conf.settings.FEATURES', {'ENABLE_EDXNOTES': True})
def test_get_id_token_anonymous(self):

    self.client.logout()
    response = self.client.get(self.get_token_url)
    self.assertEqual(response.status_code, 302)
