[lang-ref] ( resolve_symbolic_link ) ( python )

def test_resolve_symbolic_link():
    # os.path.realpath()
    assert os.path.realpath('/tmp') == '/private/tmp'  # this works on macOS
def test_resolve_symbolic_link_alternative():
    # pathlib.Path.resolve()
    assert Path('/tmp').resolve().as_posix() == '/private/tmp'  # example in macOS