Home
last modified time | relevance | path

Searched refs:call_args_list (Results 1 – 12 of 12) sorted by relevance

/third_party/python/Lib/idlelib/idle_test/
Dtest_tooltip.py32 wrapped_func.call_args_list.append((args, kwargs))
34 wrapped_func.call_args_list = []
109 self.assertGreater(len(tooltip.showtip.call_args_list), 0)
141 self.assertGreater(len(tooltip1.showtip.call_args_list), 0)
145 self.assertEqual(tooltip2.showtip.call_args_list, [])
157 self.assertGreater(len(tooltip.showtip.call_args_list), 0)
/third_party/python/Lib/unittest/test/testmock/
Dtesthelpers.py263 self.assertEqual(mock.call_args_list,
287 self.assertEqual(mock.call_args_list, [call(1, 2, a=3, b=4)])
1024 self.assertIsInstance(mock.call_args_list, _CallList)
1032 self.assertIn(kall, mock.call_args_list)
1035 self.assertIn(calls, mock.call_args_list)
1037 self.assertIn(calls, mock.call_args_list)
1039 self.assertIn(calls, mock.call_args_list)
1041 self.assertIn(calls, mock.call_args_list)
1043 self.assertNotIn(call('fish'), mock.call_args_list)
1044 self.assertNotIn([call('fish')], mock.call_args_list)
Dtestmock.py70 self.assertEqual(mock.call_args_list, [],
253 self.assertEqual(mock.call_args_list, [], "call_args_list not reset")
301 self.assertEqual(mock.call_args_list, [((sentinel.Arg,), {})],
313 self.assertEqual(mock.call_args_list, [
326 self.assertEqual(mock.call_args_list, [
1288 for expected, call_args in zip(expected_list, mock.call_args_list):
Dtestasync.py511 self.assertEqual(async_mock.call_args_list, [call(2), call(1)])
/third_party/python/Lib/test/
Dtest_getpass.py32 environ.get.call_args_list,
Dtest_smtplib.py739 self.assertEqual(self.smtp.sendmail.call_args_list[0][0][3],
741 self.assertEqual(self.smtp.sendmail.call_args_list[1][0][3],
749 self.assertEqual(self.smtp.sendmail.call_args_list[0][0][3],
Dtest_subprocess.py3548 for call in mock__wait.call_args_list[1:]:
3554 for call in mock__wait.call_args_list:
3558 msg=mock__wait.call_args_list)
3560 msg=mock__wait.call_args_list)
/third_party/node/deps/v8/tools/unittests/
Drun_perf_test.py223 self.assertEqual(len(args), len(command.Command.call_args_list))
224 for arg, actual in zip(args, command.Command.call_args_list):
/third_party/python/Doc/library/
Dunittest.mock-examples.rst782 :attr:`~Mock.call_args_list`:
788 >>> mock.call_args_list
792 can build up a list of expected calls and compare it to ``call_args_list``. This
793 looks remarkably similar to the repr of the ``call_args_list``:
796 >>> mock.call_args_list == expected
804 mutable arguments. ``call_args`` and ``call_args_list`` store *references* to the
979 :data:`~Mock.call_args_list` to assert about how the dictionary was used:
1031 >>> mock.__getitem__.call_args_list
1033 >>> mock.__setitem__.call_args_list
Dunittest.mock.rst645 :attr:`call_args`, along with members of the lists :attr:`call_args_list`,
655 .. attribute:: call_args_list
661 calls to compare with :attr:`call_args_list`.
667 >>> mock.call_args_list
670 >>> mock.call_args_list == expected
673 Members of :attr:`call_args_list` are :data:`call` objects. These can be
1111 like :attr:`~Mock.call_args` and :attr:`~Mock.call_args_list`.
2232 :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
2239 >>> m.call_args_list == [call(1, 2, a='foo', b='bar'), call()]
2273 objects that are in the :attr:`Mock.call_args`, :attr:`Mock.call_args_list` and
[all …]
/third_party/python/Lib/unittest/
Dmock.py228 funcopy.call_args_list = _CallList()
551 call_args_list = _delegating_property('call_args_list') variable in NonCallableMock
589 self.call_args_list = _CallList()
987 actual = [self._call_matcher(c) for c in self.call_args_list]
1119 self.call_args_list.append(_call)
/third_party/python/Lib/test/test_asyncio/
Dtest_tasks.py3685 self.assertEqual(len(callback.call_args_list), 1)