'Users who are not given course creator roles should still be able to create libraries
if ENABLE_CREATOR_GROUP is not enabled.'

@patch.dict('django.conf.settings.FEATURES', {'ENABLE_CREATOR_GROUP': False})
def test_lib_create_permission_no_course_creator_role_and_no_course_creator_group(self):

    self.client.logout()
    (ns_user, password) = self.create_non_staff_user()
    self.client.login(username=ns_user.username, password=password)
    response = self.client.ajax_post(LIBRARY_REST_URL, {'org': 'org', 'library': 'lib', 'display_name': 'New    Library'})
    self.assertEqual(response.status_code, 200)
