Home
last modified time | relevance | path

Searched refs:mock1 (Results 1 – 4 of 4) sorted by relevance

/third_party/python/Lib/unittest/test/testmock/
Dtestmagicmethods.py50 mock1 = Mock()
53 mock1.__iter__ = Mock(return_value=iter([]))
54 self.assertEqual(list(mock1), [])
Dtestpatch.py233 def test(this1, this2, mock1, mock2): argument
238 self.assertEqual(mock1, Test.something2,
248 self.assertNotEqual(outerMock1, mock1, "unexpected value for mock1")
250 return mock1, mock2
Dtestasync.py506 mock1 = async_mock(1)
507 await mock1
/third_party/python/Doc/library/
Dunittest.mock.rst1879 ... def test(mock1, mock2):
1880 ... assert SomeClass.static_method is mock1
1884 ... return mock1, mock2
1886 >>> mock1, mock2 = test()
1887 >>> mock1.assert_called_once_with('foo')