Exemplo n.º 1
0
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()
Exemplo n.º 2
0
def test_get_root():
    coll = Collection.get_root()
    assert coll.path == "/"
    coll.delete()
Exemplo n.º 3
0
    def ready(self):
        initialise()

        # Try to get the root. It will be created if it doesn't exist
        coll = Collection.get_root()