getcwd() function is called exactly once. We replace os.getcwd with a stub, and have a MagicMock object returned as mock_getcwd by the decorator ...
確定! 回上一頁