'Ensure the current user is not able to create a library.'

def _assert_cannot_create_library(self, org='org', library='libfail', expected_code=403):

    self.assertGreaterEqual(expected_code, 300)
    response = self.client.ajax_post(LIBRARY_REST_URL, {'org': org, 'library': library, 'display_name': 'Irrelevant'})
    self.assertEqual(response.status_code, expected_code)
    key = LibraryLocator(org=org, library=library)
    self.assertEqual(modulestore().get_library(key), None)
