def METHOD_NAME(self):
    """
    When ENABLE_AUTO_AUTH is set to True, the view should create and authenticate a new User.
    """
    original_user_count = User.objects.count()
    response = self.client.get(self.auto_auth_path)
    self.assertEqual(response.status_code, 302)
    self.assertEqual(User.objects.count(), original_user_count + 1)
    user = self.get_latest_user()
    self.assertUserLoggedIn(user)
    self.assertTrue(user.username.startswith(settings.AUTO_AUTH_USERNAME_PREFIX))
    self.assertListEqual(get_user_course_permissions(user), ['edX/DemoX/Demo_Course'])