Lines Matching refs:MagicMock
12 MagicMock, Mock, NonCallableMock,
317 mm = mock.MagicMock()
320 self.assertFalse(mm == mock.MagicMock())
321 self.assertTrue(mm != mock.MagicMock())
329 call1 = mock.call(mock.MagicMock())
358 m = MagicMock()
359 m(MagicMock())
723 wrapped_dict = MagicMock(wraps=data)
726 self.assertIsInstance(wrapped_dict['foo'], MagicMock)
739 self.assertIsInstance(wrapped_dict['baz'], MagicMock)
744 self.assertIsInstance(wrapped_dict['baz'], MagicMock)
762 klass = MagicMock(wraps=Foo)
976 mock = MagicMock(foo='bar')
980 'foo': MagicMock()}
984 self.assertIsInstance(mock.foo, MagicMock)
990 self.assertIsInstance(mock.foo, MagicMock)
1058 mock = MagicMock()
1064 mock = MagicMock()
1075 mock = MagicMock()
1086 mock = MagicMock()
1097 mock = MagicMock(**kwargs)
1102 mock = MagicMock(**kwargs)
1108 mock = MagicMock(**kwargs)
1114 mock = MagicMock(**kwargs)
1123 mock = MagicMock(**kwargs)
1218 MagicMock(),
1271 mock = MagicMock(side_effect=['a', 'b', 'c'])
1281 mock = MagicMock(side_effect=Foo)
1291 for Klass in Mock, MagicMock:
1381 for mock in Mock(), MagicMock():
1451 m = MagicMock()
1696 m = MagicMock(f=MagicMock(return_value=1))
1702 m = MagicMock(f=MagicMock(side_effect=[2, 3]))
1716 Mock, MagicMock, NonCallableMock, NonCallableMagicMock
1761 for Klass in MagicMock, NonCallableMagicMock:
1778 for Klass in (NonCallableMock, Mock, MagicMock, NonCallableMagicMock,
1796 mock.baz = MagicMock()()
1803 for Klass in Mock, MagicMock:
1805 mock.return_value = MagicMock()
1834 for Klass in Mock, MagicMock:
1837 m.__float__ = MagicMock(return_value=3.0)
1882 mock_namedtemp = mock.mock_open(mock.MagicMock(name='JLV'))
1912 for Klass in Mock, MagicMock:
1941 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1958 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1959 for Klass in Mock, MagicMock:
2023 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
2037 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
2055 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
2073 for mock in Mock(), MagicMock():
2148 Mock, MagicMock, NonCallableMock, NonCallableMagicMock
2152 Mock, MagicMock, NonCallableMock, NonCallableMagicMock, AsyncMock