Home
last modified time | relevance | path

Searched refs:mock_calls (Results 1 – 25 of 34) 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/cpython3/Lib/unittest/test/testmock/
Dtestmock.py257 self.assertEqual(mock.mock_calls, [])
1090 self.assertIs(mock.mock_calls == [], True)
1095 self.assertEqual(mock.mock_calls, expected)
1099 self.assertEqual(mock.mock_calls, expected)
1101 self.assertEqual(mock.foo.mock_calls, [('', (), {})])
1108 self.assertEqual(mock.mock_calls, expected)
1109 self.assertEqual(mock.return_value.foo.mock_calls,
1111 self.assertEqual(mock.return_value.mock_calls,
1120 self.assertEqual(mock.mock_calls, expected)
1121 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/autotest/server/cros/tradefed/
Dpush_arc_image_unittest.py102 self.assertEqual(in_sequence.mock_calls, expected_calls)
148 self.assertEqual(in_sequence.mock_calls, expected_calls)
195 self.assertEqual(in_sequence.mock_calls, expected_calls)
241 self.assertEqual(in_sequence.mock_calls, expected_calls)
287 self.assertEqual(in_sequence.mock_calls, expected_calls)
333 self.assertEqual(in_sequence.mock_calls, expected_calls)
/external/pigweed/pw_toolchain/py/
Dclang_tidy_test.py51 self.assertEqual(len(mock_run.mock_calls), 0)
78 self.assertGreater(len(mock_run.mock_calls), 0)
/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/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/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/pigweed/pw_console/py/
Drepl_pane_test.py193 expected_call, repl_pane.update_output_buffer.mock_calls
254 expected_call, repl_pane.update_output_buffer.mock_calls
/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.rst362 The :attr:`mock_calls` list is checked for the calls.
369 they must all appear in :attr:`mock_calls`.
436 :attr:`method_calls` and :attr:`mock_calls` attributes of this one.
646 :attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects.
696 .. attribute:: mock_calls
698 :attr:`mock_calls` records *all* calls to the mock object, its methods,
713 >>> mock.mock_calls == expected
716 Members of :attr:`mock_calls` are :data:`call` objects. These can be
722 The way :attr:`mock_calls` are recorded means that where nested
729 >>> 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/python/mobly/tests/mobly/controllers/android_device_lib/
Dservice_manager_test.py258 mock_call_tracker.mock_calls,
298 self.assertEqual(mock_call_tracker.mock_calls,
362 mock_call_tracker.mock_calls,
395 mock_call_tracker.mock_calls,
/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/portpicker/src/tests/
Dportserver_test.py334 self.assertEqual([], portserver._get_process_command_line.mock_calls)
339 self.assertFalse(portserver._should_allocate_port.mock_calls)
/external/toolchain-utils/rust_tools/
Drust_watch_test.py82 self.assertEqual(sleep_mock.mock_calls, sleep_timings)
/external/python/cpython3/Lib/unittest/
Dmock.py219 funcopy.mock_calls = _CallList()
230 funcopy.mock_calls = _CallList()
552 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock
588 self.mock_calls = _CallList()
946 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls)
1041 if not self.mock_calls:
1128 self.mock_calls.append(_Call(('', args, kwargs)))
1143 _new_parent.mock_calls.append(this_mock_call)

12