'Tests creator group feature on, user added.'

def test_creator_group_enabled_nonempty(self):

    with mock.patch.dict('django.conf.settings.FEATURES', {'ENABLE_CREATOR_GROUP': True}):
        add_users(self.admin, CourseCreatorRole(), self.user)
        self.assertTrue(user_has_role(self.user, CourseCreatorRole()))
        user_not_added = User.objects.create_user('testuser2', 'test+courses2@edx.org', 'foo2')
        self.assertFalse(user_has_role(user_not_added, CourseCreatorRole()))
        remove_users(self.admin, CourseCreatorRole(), self.user)
        self.assertFalse(user_has_role(self.user, CourseCreatorRole()))
