One of the mocks that I'm using contains the call call().__str__().
Output of my_mock.mock_calls
[call(<MagicMock name='mock()' id='140630678530704'>, indent=2, sort_keys=True),
call().__str__(), # <-- what I'm trying to represent
call()]
How can I represent this?
Checking that call().__str__() is part of the mock_calls is causing me difficulty as that will get converted to the string 'call()'.
In [16]: mock.call().__str__()
Out[16]: 'call()'