def create_root(): """Create the root container :return: The root collection object :rtype: :class:`radon.model.Collection`""" # get_root will create the root if it doesn't exist yet return Collection.get_root()
def test_get_root(): coll = Collection.get_root() assert coll.path == "/" coll.delete()
def ready(self): initialise() # Try to get the root. It will be created if it doesn't exist coll = Collection.get_root()