def test_get_basename_root2(): cs = CauSync(config, "/tmp/causync_src", "/tmp/causync_dest", 'sync') cs.get_basename('//')
def test_get_basename(): cs = CauSync(config, "/tmp/causync_src", "/tmp/causync_dest", 'sync') assert_equals(cs.get_basename('/tmp/causync_src/test'), 'test') assert_equals(cs.get_basename('/tmp'), 'tmp')