Lines Matching refs:Mock
3 from unittest.mock import Mock, MagicMock, _magics
10 mock = Mock()
13 mock.__getitem__ = Mock()
34 mock = Mock()
48 mock1 = Mock()
49 mock2 = Mock()
51 mock1.__iter__ = Mock(return_value=iter([]))
57 mock = Mock()
64 mock = Mock()
71 mock = Mock()
102 original = mock = Mock()
129 original = mock = Mock()
155 mock = Mock()
157 self.assertEqual(hash(mock), Mock.__hash__(mock))
166 m = Mock()
174 mock = Mock()
198 for mock in Mock(), MagicMock():
229 mock = Mock()
296 mock = Mock(spec=Iterable)
299 mock.__iter__ = Mock(return_value=iter([]))
304 mock = Mock(spec=NonIterable)
308 mock.__int__ = Mock(return_value=iter([]))
321 mock = Mock(spec_set=Iterable)
324 mock.__iter__ = Mock(return_value=iter([]))
329 mock = Mock(spec_set=NonIterable)
333 mock.__int__ = Mock(return_value=iter([]))
382 for mock in Mock(), MagicMock():
391 m = Mock()