Home
last modified time | relevance | path

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

/third_party/python/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)
/third_party/python/Lib/unittest/
Dmock.py251 mock.await_count = 0
2170 await_count = _delegating_property('await_count') variable in AsyncMockMixin
2195 self.await_count += 1
2234 if self.await_count == 0:
2242 if not self.await_count == 1:
2270 if not self.await_count == 1:
2337 if self.await_count != 0:
2347 self.await_count = 0
/third_party/python/Doc/library/
Dunittest.mock.rst1045 See :func:`Mock.reset_mock`. Also sets :attr:`await_count` to 0,
1048 .. attribute:: await_count
1057 >>> mock.await_count
1060 >>> mock.await_count