Lines Matching refs:MagicMock

10     MagicMock, Mock, NonCallableMock,
311 mm = mock.MagicMock()
314 self.assertFalse(mm == mock.MagicMock())
315 self.assertTrue(mm != mock.MagicMock())
321 call1 = mock.call(mock.MagicMock())
345 m = MagicMock()
346 m(MagicMock())
877 mock = MagicMock(foo='bar')
881 'foo': MagicMock()}
885 self.assertIsInstance(mock.foo, MagicMock)
891 self.assertIsInstance(mock.foo, MagicMock)
964 mock = MagicMock()
970 mock = MagicMock()
981 mock = MagicMock()
992 mock = MagicMock()
1003 mock = MagicMock(**kwargs)
1008 mock = MagicMock(**kwargs)
1014 mock = MagicMock(**kwargs)
1020 mock = MagicMock(**kwargs)
1029 mock = MagicMock(**kwargs)
1112 MagicMock(),
1166 mock = MagicMock(side_effect=['a', 'b', 'c'])
1176 mock = MagicMock(side_effect=Foo)
1186 for Klass in Mock, MagicMock:
1276 for mock in Mock(), MagicMock():
1491 Mock, MagicMock, NonCallableMock, NonCallableMagicMock
1536 for Klass in MagicMock, NonCallableMagicMock:
1553 for Klass in NonCallableMock, Mock, MagicMock, NonCallableMagicMock:
1570 mock.baz = MagicMock()()
1577 for Klass in Mock, MagicMock:
1579 mock.return_value = MagicMock()
1608 for Klass in Mock, MagicMock:
1611 m.__float__ = MagicMock(return_value=3.0)
1638 mock_namedtemp = mock.mock_open(mock.MagicMock(name='JLV'))
1668 for Klass in Mock, MagicMock:
1697 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1714 classes = Mock, MagicMock, NonCallableMagicMock, NonCallableMock
1715 for Klass in Mock, MagicMock:
1730 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
1744 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
1762 for mock in (Mock(), MagicMock(), NonCallableMagicMock(),
1780 for mock in Mock(), MagicMock():