'Test new course creation -- error path for course creation disabled, not staff access.'

def test_create_course_with_course_creation_disabled_not_staff(self):

    with mock.patch.dict('django.conf.settings.FEATURES', {'DISABLE_COURSE_CREATION': True}):
        self.user.is_staff = False
        self.user.save()
        self.assert_course_permission_denied()
