'Test that we can get data about a library (in JSON format) using /library/:key/'

def test_get_lib_info(self):

    lib_key = LibraryFactory.create().location.library_key
    lib = self.store.get_library(lib_key, remove_version=False, remove_branch=False)
    version = lib.location.library_key.version_guid
    self.assertNotEqual(version, None)
    response = self.client.get_json(make_url_for_lib(lib_key))
    self.assertEqual(response.status_code, 200)
    info = parse_json(response)
    self.assertEqual(info['display_name'], lib.display_name)
    self.assertEqual(info['library_id'], unicode(lib_key))
    self.assertEqual(info['previous_version'], None)
    self.assertNotEqual(info['version'], None)
    self.assertNotEqual(info['version'], '')
    self.assertEqual(info['version'], unicode(version))
