How can I claim that the attribute is Mock and / or MagicMock ?
For example,
from unittest.mock import MagicMock def foo(x): a = x.value m = MagicMock() foo(m) m.attr_accessed('value')
What is the actual way to verify that foo tried to access m.value ?
python unit-testing mocking
gotgenes
source share