'Tests that adding to creator group fails if user is not active'

def test_add_user_not_active(self):

    with mock.patch.dict('django.conf.settings.FEATURES', {'DISABLE_COURSE_CREATION': False, 'ENABLE_CREATOR_GROUP': True}):
        self.user.is_active = False
        add_users(self.admin, CourseCreatorRole(), self.user)
        self.assertFalse(user_has_role(self.user, CourseCreatorRole()))
