'Use the normal studio library URL to check if we have access
`library` can be a LibraryLocator or the library\'s root XBlock'

def _can_access_library(self, library):

    if isinstance(library, (basestring, LibraryLocator)):
        lib_key = library
    else:
        lib_key = library.location.library_key
    response = self.client.get(reverse_library_url('library_handler', unicode(lib_key)))
    self.assertIn(response.status_code, (200, 302, 403))
    return (response.status_code == 200)
