This is done by defining __aenter__ and __aexit__ methods. Unittest.mock.MagicMock accepts the standard python magic methods by default, ...
確定! 回上一頁