[lang-ref] ( get_current_dir ) ( python )

def test_get_current_dir(pushd):
    # os.getcwd
    os.chdir('/private/tmp')
    assert os.getcwd() == '/private/tmp'
def test_get_current_dir_alternative(pushd):
    # pathlib.Path.cwd()
    os.chdir('/private/tmp')
    assert Path.cwd() == Path('/private/tmp')