Lines Matching refs:Mock
5 from unittest.mock import AsyncMock, Mock, MagicMock, _magics
12 mock = Mock()
15 mock.__getitem__ = Mock()
36 mock = Mock()
50 mock1 = Mock()
51 mock2 = Mock()
53 mock1.__iter__ = Mock(return_value=iter([]))
59 mock = Mock()
66 mock = Mock()
73 mock = Mock()
104 original = mock = Mock()
131 original = mock = Mock()
157 mock = Mock()
159 self.assertEqual(hash(mock), Mock.__hash__(mock))
168 m = Mock()
176 mock = Mock()
200 for mock in Mock(), MagicMock():
231 mock = Mock()
339 mock = Mock(spec=Iterable)
342 mock.__iter__ = Mock(return_value=iter([]))
347 mock = Mock(spec=NonIterable)
351 mock.__int__ = Mock(return_value=iter([]))
363 mock = Mock(spec_set=Iterable)
366 mock.__iter__ = Mock(return_value=iter([]))
371 mock = Mock(spec_set=NonIterable)
375 mock.__int__ = Mock(return_value=iter([]))
424 for mock in Mock(), MagicMock():
432 m = Mock()