[lang-ref] ( current_dir ) ( python )
def test_current_dir(pushd):
# os.getcwd
os.chdir('/private/tmp')
assert os.getcwd() == '/private/tmp'
def test_current_dir_alternative(pushd):
# pathlib.Path.cwd()
os.chdir('/private/tmp')
assert Path.cwd() == Path('/private/tmp')