Home
last modified time | relevance | path

Searched refs:mock_calls (Results 1 – 25 of 32) sorted by relevance

12

/external/vboot_reference/tests/
Drollback_index2_tests.c35 static char mock_calls[16384]; variable
36 static char *mock_cnext = mock_calls;
61 *mock_calls = 0; in ResetMocks()
62 mock_cnext = mock_calls; in ResetMocks()
250 TEST_STR_EQ(mock_calls, in CrcTestFirmware()
262 TEST_STR_EQ(mock_calls, in CrcTestFirmware()
275 TEST_STR_EQ(mock_calls, in CrcTestFirmware()
285 TEST_STR_EQ(mock_calls, in CrcTestFirmware()
297 TEST_STR_EQ(mock_calls, in CrcTestFirmware()
311 TEST_STR_EQ(mock_calls, in CrcTestFirmware()
[all …]
/external/python/mock/mock/tests/
Dtestmock.py247 self.assertEqual(mock.mock_calls, [])
1055 self.assertIs(mock.mock_calls == [], True)
1060 self.assertEqual(mock.mock_calls, expected)
1064 self.assertEqual(mock.mock_calls, expected)
1066 self.assertEqual(mock.foo.mock_calls, [('', (), {})])
1073 self.assertEqual(mock.mock_calls, expected)
1074 self.assertEqual(mock.return_value.foo.mock_calls,
1076 self.assertEqual(mock.return_value.mock_calls,
1085 self.assertEqual(mock.mock_calls, expected)
1086 self.assertEqual(mock().mock_calls,
[all …]
Dtesthelpers.py76 self.assertEqual(expected, mock.mock_calls)
77 self.assertEqual(mock.mock_calls, expected)
279 self.assertEqual(mock.mock_calls, [call(1, 2, a=3, b=4)])
285 self.assertEqual(mock.mock_calls[-1], last_call)
286 self.assertEqual(mock.mock_calls, last_call.call_list())
308 self.assertEqual(call(1).call_list(), mock.mock_calls)
313 mock.mock_calls)
318 mock.mock_calls)
323 self.assertEqual(kall.call_list(), mock.mock_calls)
331 self.assertEqual(m.mock_calls, [ANY])
[all …]
Dtesthelpers_py3.py21 self.assertEqual(mock.mock_calls, [call(1, 2, c=3), call(1, c=3)])
Dtestwith.py167 self.assertEqual(mock.mock_calls, expected_calls)
183 self.assertEqual(mock.mock_calls, expected_calls)
/external/python/cpython3/Lib/unittest/test/testmock/
Dtestmock.py229 self.assertEqual(mock.mock_calls, [])
1062 self.assertIs(mock.mock_calls == [], True)
1067 self.assertEqual(mock.mock_calls, expected)
1071 self.assertEqual(mock.mock_calls, expected)
1073 self.assertEqual(mock.foo.mock_calls, [('', (), {})])
1080 self.assertEqual(mock.mock_calls, expected)
1081 self.assertEqual(mock.return_value.foo.mock_calls,
1083 self.assertEqual(mock.return_value.mock_calls,
1092 self.assertEqual(mock.mock_calls, expected)
1093 self.assertEqual(mock().mock_calls,
[all …]
Dtesthelpers.py64 self.assertEqual(expected, mock.mock_calls)
65 self.assertEqual(mock.mock_calls, expected)
288 self.assertEqual(mock.mock_calls, [call(1, 2, a=3, b=4)])
294 self.assertEqual(mock.mock_calls[-1], last_call)
295 self.assertEqual(mock.mock_calls, last_call.call_list())
317 self.assertEqual(call(1).call_list(), mock.mock_calls)
322 mock.mock_calls)
327 mock.mock_calls)
332 self.assertEqual(kall.call_list(), mock.mock_calls)
340 self.assertEqual(m.mock_calls, [ANY])
[all …]
Dtestasync.py835 self.assertEqual(self.mock.mock_calls, kalls_empty)
842 self.assertEqual(self.mock.mock_calls, mock_kalls)
849 self.assertEqual(a_class_mock.async_method.mock_calls, kalls_empty)
850 self.assertEqual(a_class_mock.mock_calls, [call.async_method()])
856 self.assertEqual(a_class_mock.async_method.mock_calls, method_kalls)
857 self.assertEqual(a_class_mock.mock_calls, mock_kalls)
Dtestwith.py162 self.assertEqual(mock.mock_calls, expected_calls)
178 self.assertEqual(mock.mock_calls, expected_calls)
/external/chromium-trace/catapult/devil/devil/utils/
Dlsusb_test.py11 from devil.utils import mock_calls
348 class LsusbTest(mock_calls.TestCase):
Dmock_calls_test.py15 from devil.utils import mock_calls
45 class TestCaseWithAssertCallsTest(mock_calls.TestCase):
/external/chromium-trace/catapult/devil/devil/android/tools/
Dsystem_app_test.py71 self.assertFalse(mock_device.EnableRoot.mock_calls) # assert not called
74 self.assertFalse(mock_device.SetProp.mock_calls) # assert not called
/external/chromium-trace/catapult/devil/devil/android/
Dcpu_temperature_test.py17 from devil.utils import mock_calls
24 class CpuTemperatureTest(mock_calls.TestCase):
Dapk_helper_test.py13 from devil.utils import mock_calls
170 class ApkHelperTest(mock_calls.TestCase):
/external/python/oauth2client/tests/
Dtest_service_account.py320 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
322 self.assertEqual(len(signer.sign.mock_calls), 1)
337 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
339 self.assertEqual(len(signer.sign.mock_calls), 1 + 0)
359 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
361 self.assertEqual(len(signer.sign.mock_calls), 1 + 0 + 1)
Dtest_crypt.py121 self.assertEqual(Verifier.from_string.mock_calls,
124 self.assertEqual(verifier.verify.mock_calls,
Dtest_client.py422 http_client_module.HTTPConnection.mock_calls, [])
423 self.assertEqual(connection.getresponse.mock_calls, [])
427 self.assertEqual(response.getheader.mock_calls, [])
1136 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
1151 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
1171 self.assertEqual(expected_utcnow_calls, utcnow.mock_calls)
1247 self.assertEqual(logger.info.mock_calls, [call1, call2])
1403 self.assertEqual(len(http_request.mock_calls), 1)
1404 scopes_call = http_request.mock_calls[0]
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst147 :attr:`~Mock.mock_calls` attribute records all calls
155 >>> mock.mock_calls
158 If you make an assertion about ``mock_calls`` and any unexpected methods
164 ``mock_calls``:
167 >>> mock.mock_calls == expected
176 >>> m.mock_calls[-1] == call.factory(important=False).deliver()
223 >>> mock.mock_calls
225 >>> mock.mock_calls == expected
566 Using :attr:`~Mock.mock_calls` we can check the chained call with a single
568 several entries in ``mock_calls``. We can use :meth:`call.call_list` to create
[all …]
Dunittest.mock.rst361 The :attr:`mock_calls` list is checked for the calls.
368 they must all appear in :attr:`mock_calls`.
435 :attr:`method_calls` and :attr:`mock_calls` attributes of this one.
645 :attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects.
695 .. attribute:: mock_calls
697 :attr:`mock_calls` records *all* calls to the mock object, its methods,
712 >>> mock.mock_calls == expected
715 Members of :attr:`mock_calls` are :data:`call` objects. These can be
721 The way :attr:`mock_calls` are recorded means that where nested
728 >>> mock.mock_calls
[all …]
/external/chromium-trace/catapult/devil/devil/utils/lazy/
Dweak_constant_test.py47 self.assertFalse(initializer.mock_calls) # assert not called
/external/pdfium/third_party/pymock/
Dmock.py310 funcopy.mock_calls = _CallList()
321 funcopy.mock_calls = _CallList()
592 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock
617 self.mock_calls = _CallList()
860 if calls not in self.mock_calls:
863 'Actual: %r' % (calls, self.mock_calls)
867 all_calls = list(self.mock_calls)
967 self.mock_calls.append(_Call(('', args, kwargs)))
997 _new_parent.mock_calls.append(this_mock_call)
/external/python/cpython2/Lib/test/
D_mock_backport.py215 funcopy.mock_calls = _CallList()
226 funcopy.mock_calls = _CallList()
504 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock
533 self.mock_calls = _CallList()
812 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
817 'Actual: %r' % (calls, self.mock_calls)
923 self.mock_calls.append(_Call(('', args, kwargs)))
953 _new_parent.mock_calls.append(this_mock_call)
/external/python/mock/mock/
Dmock.py305 funcopy.mock_calls = _CallList()
316 funcopy.mock_calls = _CallList()
613 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock
649 self.mock_calls = _CallList()
972 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
1046 if not self.mock_calls:
1048 return "\n"+prefix+": "+safe_repr(self.mock_calls)+"."
1112 self.mock_calls.append(_Call(('', args, kwargs)))
1127 _new_parent.mock_calls.append(this_mock_call)
/external/toolchain-utils/rust_tools/
Drust_watch_test.py83 self.assertEqual(sleep_mock.mock_calls, sleep_timings)
/external/python/cpython3/Lib/unittest/
Dmock.py215 funcopy.mock_calls = _CallList()
226 funcopy.mock_calls = _CallList()
548 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock
584 self.mock_calls = _CallList()
934 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
1030 if not self.mock_calls:
1117 self.mock_calls.append(_Call(('', args, kwargs)))
1132 _new_parent.mock_calls.append(this_mock_call)

12