Somehow, I think mymock.b () has nothing to do with the b () method. What can be done to do this?
. , , , . , a b, patch a b.
>>> from mock import patch
>>> with patch('__main__.a') as patch_a:
... b()
... patch_a.assert_called_with()
, - , , , , , . b , a. , a, , , .
, a, assert_called_with, , patches mock_calls. patch_a.mock_calls.