Example #1
0
def test_get_jottapath(tmpdir):
    topdir = tmpdir.mkdir("topdir")
    subdir = topdir.mkdir("subdir1").mkdir("subdir2")
    jottapath = jottacloud.get_jottapath(str(topdir), str(subdir), "/TEST_ROOT")
    assert jottapath == "/TEST_ROOT/topdir/subdir1/subdir2"
def test_get_jottapath(tmpdir):
    # def get_jottapath(localtopdir, dirpath, jottamountpoint):
    topdir = tmpdir.mkdir("topdir")
    subdir = topdir.mkdir("subdir1").mkdir("subdir2")
    jottapath = jottacloud.get_jottapath(str(topdir), str(subdir), "/TEST_ROOT")
    assert jottapath == "/TEST_ROOT/topdir/subdir1/subdir2"