'Verify that the API raises an exception for a user with no profile.'

def test_update_email_optin_anonymous_user(self):

    course = CourseFactory.create()
    (no_profile_user, __) = User.objects.get_or_create(username='no_profile_user', password=self.PASSWORD)
    with self.assertRaises(UserNotFound):
        update_email_opt_in(no_profile_user, course.id.org, True)
