def METHOD_NAME(self):
    # If the Analytics constructor has not been called, then
    # is_configured() calls it so that the values are populated.
    Analytics.GLOBAL_ENABLED = None
    Analytics.LIBRARY_ENABLED = object()
    library = self._default_library
    assert False == Analytics.is_configured(library)
    assert False == Analytics.GLOBAL_ENABLED
    assert set() == Analytics.LIBRARY_ENABLED
    # If analytics are enabled globally, they are enabled for any
    # library.
    Analytics.GLOBAL_ENABLED = True
    assert True == Analytics.is_configured(object())
    # If not, they are enabled only for libraries whose IDs are
    # in LIBRARY_ENABLED.
    Analytics.GLOBAL_ENABLED = False
    assert False == Analytics.is_configured(library)
    Analytics.LIBRARY_ENABLED.add(library.id)
    assert True == Analytics.is_configured(library)