assert foo == original Mock supports the mocking of Python magic methods. The easiest way of using magic methods is with the MagicMock class.
確定! 回上一頁