/external/vboot_reference/tests/ |
D | rollback_index2_tests.c | 35 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/ |
D | testmock.py | 257 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 …]
|
D | testhelpers.py | 64 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 …]
|
D | testasync.py | 835 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)
|
D | testwith.py | 162 self.assertEqual(mock.mock_calls, expected_calls) 178 self.assertEqual(mock.mock_calls, expected_calls)
|
/external/autotest/server/cros/tradefed/ |
D | push_arc_image_unittest.py | 102 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/ |
D | clang_tidy_test.py | 51 self.assertEqual(len(mock_run.mock_calls), 0) 78 self.assertGreater(len(mock_run.mock_calls), 0)
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | lsusb_test.py | 11 from devil.utils import mock_calls 348 class LsusbTest(mock_calls.TestCase):
|
D | mock_calls_test.py | 15 from devil.utils import mock_calls 45 class TestCaseWithAssertCallsTest(mock_calls.TestCase):
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | system_app_test.py | 71 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/ |
D | test_service_account.py | 320 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)
|
D | test_crypt.py | 121 self.assertEqual(Verifier.from_string.mock_calls, 124 self.assertEqual(verifier.verify.mock_calls,
|
D | test_client.py | 422 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/ |
D | cpu_temperature_test.py | 17 from devil.utils import mock_calls 24 class CpuTemperatureTest(mock_calls.TestCase):
|
D | apk_helper_test.py | 13 from devil.utils import mock_calls 170 class ApkHelperTest(mock_calls.TestCase):
|
/external/pigweed/pw_console/py/ |
D | repl_pane_test.py | 193 expected_call, repl_pane.update_output_buffer.mock_calls 254 expected_call, repl_pane.update_output_buffer.mock_calls
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock-examples.rst | 147 :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 …]
|
D | unittest.mock.rst | 362 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/ |
D | weak_constant_test.py | 47 self.assertFalse(initializer.mock_calls) # assert not called
|
/external/python/mobly/tests/mobly/controllers/android_device_lib/ |
D | service_manager_test.py | 258 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/ |
D | mock.py | 310 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.py | 215 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/ |
D | portserver_test.py | 334 self.assertEqual([], portserver._get_process_command_line.mock_calls) 339 self.assertFalse(portserver._should_allocate_port.mock_calls)
|
/external/toolchain-utils/rust_tools/ |
D | rust_watch_test.py | 82 self.assertEqual(sleep_mock.mock_calls, sleep_timings)
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 219 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)
|