Home
last modified time | relevance | path

Searched refs:await_count (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/unittest/test/testmock/
Dtestasync.py212 self.assertEqual(spec.await_count, 0)
221 self.assertEqual(spec.await_count, 1)
245 self.assertEqual(mock_method.await_count, 0)
252 self.assertEqual(mock_method.await_count, 1)
261 self.assertEqual(mock_method.await_count, 0)
/external/python/cpython3/Lib/unittest/
Dmock.py247 mock.await_count = 0
2122 await_count = _delegating_property('await_count') variable in AsyncMockMixin
2147 self.await_count += 1
2186 if self.await_count == 0:
2194 if not self.await_count == 1:
2222 if not self.await_count == 1:
2289 if self.await_count != 0:
2299 self.await_count = 0
/external/python/cpython3/Doc/library/
Dunittest.mock.rst1044 See :func:`Mock.reset_mock`. Also sets :attr:`await_count` to 0,
1047 .. attribute:: await_count
1056 >>> mock.await_count
1059 >>> mock.await_count