Home
last modified time | relevance | path

Searched refs:call_list (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmock.py878 call.foo.bar().baz().call_list())
894 self.assertEqual(mock.mock_calls, call(1)(2)(3).call_list())
895 self.assertEqual(mock().mock_calls, call(2)(3).call_list())
896 self.assertEqual(mock()().mock_calls, call(3).call_list())
901 call(1)(2)(3).a.b.c(4).call_list())
903 call(2)(3).a.b.c(4).call_list())
905 call(3).a.b.c(4).call_list())
912 call.foo.bar().baz().__int__().call_list())
914 call.baz().__int__().call_list())
916 call().__int__().call_list())
[all …]
Dtesthelpers.py267 self.assertEqual(mock.mock_calls, last_call.call_list())
273 self.assertEqual(call(1).call_list(), mock.mock_calls)
277 self.assertEqual(call(1).method(2).call_list(),
282 self.assertEqual(call(1).method(2)(3).call_list(),
288 self.assertEqual(kall.call_list(), mock.mock_calls)
/external/python/cpython2/Lib/
DSimpleXMLRPCServer.py346 def system_multicall(self, call_list): argument
357 for call in call_list:
Dxmlrpclib.py947 def __init__(self, call_list, name): argument
948 self.__call_list = call_list
/external/python/cpython3/Lib/xmlrpc/
Dserver.py336 def system_multicall(self, call_list): argument
347 for call in call_list:
Dclient.py824 def __init__(self, call_list, name): argument
825 self.__call_list = call_list
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst199 >>> expected = call.connection.cursor().execute("SELECT 1").call_list()
205 It is the call to ``.call_list()`` that turns our call object into a list of
504 several entries in ``mock_calls``. We can use :meth:`call.call_list` to create
508 >>> call_list = chained.call_list()
509 >>> assert mock_backend.mock_calls == call_list
1164 >>> calls = call.one().two().three().call_list()
Dunittest.mock.rst1881 .. method:: call.call_list()
1883 For a call object that represents multiple calls, :meth:`call_list`
1887 ``call_list`` is particularly useful for making assertions on "chained calls". A
1892 :meth:`~call.call_list` can construct the sequence of calls from the same
1899 >>> kall.call_list()
1904 >>> m.mock_calls == kall.call_list()
/external/pdfium/third_party/pymock/
Dmock.py2118 def call_list(self): member in _Call
/external/python/cpython2/Lib/test/
D_mock_backport.py2068 def call_list(self): member in _Call
/external/python/cpython3/Lib/unittest/
Dmock.py2103 def call_list(self): member in _Call