/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/mock/mock/tests/ |
D | testmock.py | 247 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 …]
|
D | testhelpers.py | 76 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 …]
|
D | testhelpers_py3.py | 21 self.assertEqual(mock.mock_calls, [call(1, 2, c=3), call(1, c=3)])
|
D | testwith.py | 167 self.assertEqual(mock.mock_calls, expected_calls) 183 self.assertEqual(mock.mock_calls, expected_calls)
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmock.py | 229 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 …]
|
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/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/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/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/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 | 361 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/ |
D | weak_constant_test.py | 47 self.assertFalse(initializer.mock_calls) # assert not called
|
/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/mock/mock/ |
D | mock.py | 305 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/ |
D | rust_watch_test.py | 83 self.assertEqual(sleep_mock.mock_calls, sleep_timings)
|
/external/python/cpython3/Lib/unittest/ |
D | mock.py | 215 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)
|