'We should not be able to create multiple libraries with the same key'

def test_no_duplicate_libraries(self):

    lib = LibraryFactory.create()
    lib_key = lib.location.library_key
    response = self.client.ajax_post(LIBRARY_REST_URL, {'org': lib_key.org, 'library': lib_key.library, 'display_name': "A    Duplicate    key,    same    as    'lib'"})
    self.assertIn('already    a    library    defined', parse_json(response)['ErrMsg'])
    self.assertEqual(response.status_code, 400)
