/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 | 229 self.assertEqual(mock.mock_calls, []) 968 self.assertIs(mock.mock_calls == [], True) 973 self.assertEqual(mock.mock_calls, expected) 977 self.assertEqual(mock.mock_calls, expected) 979 self.assertEqual(mock.foo.mock_calls, [('', (), {})]) 986 self.assertEqual(mock.mock_calls, expected) 987 self.assertEqual(mock.return_value.foo.mock_calls, 989 self.assertEqual(mock.return_value.mock_calls, 998 self.assertEqual(mock.mock_calls, expected) 999 self.assertEqual(mock().mock_calls, [all …]
|
D | testhelpers.py | 70 self.assertEqual(expected, mock.mock_calls) 71 self.assertEqual(mock.mock_calls, expected) 264 self.assertEqual(mock.mock_calls, [call(1, 2, a=3, b=4)]) 270 self.assertEqual(mock.mock_calls[-1], last_call) 271 self.assertEqual(mock.mock_calls, last_call.call_list()) 293 self.assertEqual(call(1).call_list(), mock.mock_calls) 298 mock.mock_calls) 303 mock.mock_calls) 308 self.assertEqual(kall.call_list(), mock.mock_calls) 316 self.assertEqual(m.mock_calls, [ANY]) [all …]
|
D | testwith.py | 165 self.assertEqual(mock.mock_calls, expected_calls) 181 self.assertEqual(mock.mock_calls, expected_calls)
|
D | testpatch.py | 1661 self.assertEqual(m.mock_calls, kalls) 1663 self.assertEqual(m.wibble.mock_calls, [call()]) 1667 self.assertEqual(m.mock_calls, kalls) 1671 self.assertEqual(m.mock_calls, kalls) 1673 self.assertEqual(result.mock_calls, [call.wibble()]) 1674 self.assertEqual(result.wibble.mock_calls, [call()])
|
/external/python/mock/mock/tests/ |
D | testmock.py | 253 self.assertEqual(mock.mock_calls, []) 880 self.assertIs(mock.mock_calls == [], True) 885 self.assertEqual(mock.mock_calls, expected) 889 self.assertEqual(mock.mock_calls, expected) 891 self.assertEqual(mock.foo.mock_calls, [('', (), {})]) 898 self.assertEqual(mock.mock_calls, expected) 899 self.assertEqual(mock.return_value.foo.mock_calls, 901 self.assertEqual(mock.return_value.mock_calls, 910 self.assertEqual(mock.mock_calls, expected) 911 self.assertEqual(mock().mock_calls, [all …]
|
D | testhelpers.py | 72 self.assertEqual(expected, mock.mock_calls) 73 self.assertEqual(mock.mock_calls, expected) 266 self.assertEqual(mock.mock_calls, [call(1, 2, a=3, b=4)]) 272 self.assertEqual(mock.mock_calls[-1], last_call) 273 self.assertEqual(mock.mock_calls, last_call.call_list()) 279 self.assertEqual(call(1).call_list(), mock.mock_calls) 284 mock.mock_calls) 289 mock.mock_calls) 294 self.assertEqual(kall.call_list(), mock.mock_calls) 302 self.assertEqual(m.mock_calls, [ANY]) [all …]
|
D | testwith.py | 156 self.assertEqual(mock.mock_calls, expected_calls) 172 self.assertEqual(mock.mock_calls, expected_calls)
|
D | testpatch.py | 1646 self.assertEqual(m.mock_calls, kalls) 1648 self.assertEqual(m.wibble.mock_calls, [call()]) 1652 self.assertEqual(m.mock_calls, kalls) 1656 self.assertEqual(m.mock_calls, kalls) 1658 self.assertEqual(result.mock_calls, [call.wibble()]) 1659 self.assertEqual(result.wibble.mock_calls, [call()])
|
/external/autotest/scheduler/ |
D | drones_unittest.py | 44 mock_calls = ('foo',) 48 stdin=cPickle.dumps(mock_calls), stdout_tee=None, 52 self.assertEqual('mock return', drone._execute_calls_impl(mock_calls))
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | lsusb_test.py | 12 from devil.utils import mock_calls 220 class LsusbTest(mock_calls.TestCase):
|
D | mock_calls_test.py | 16 from devil.utils import mock_calls 47 class TestCaseWithAssertCallsTest(mock_calls.TestCase):
|
/external/chromium-trace/catapult/devil/devil/android/tools/ |
D | system_app_test.py | 58 self.assertFalse(mock_device.EnableRoot.mock_calls) # assert not called 61 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 | apk_helper_test.py | 13 from devil.utils import mock_calls 135 class ApkHelperTest(mock_calls.TestCase):
|
D | fastboot_utils_test.py | 22 from devil.utils import mock_calls 76 class FastbootUtilsTest(mock_calls.TestCase):
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock-examples.rst | 133 :attr:`~Mock.mock_calls` attribute records all calls 141 >>> mock.mock_calls 144 If you make an assertion about ``mock_calls`` and any unexpected methods 150 ``mock_calls``: 153 >>> mock.mock_calls == expected 162 >>> m.mock_calls[-1] == call.factory(important=False).deliver() 209 >>> mock.mock_calls 211 >>> mock.mock_calls == expected 511 Using :attr:`~Mock.mock_calls` we can check the chained call with a single 513 several entries in ``mock_calls``. We can use :meth:`call.call_list` to create [all …]
|
D | unittest.mock.rst | 337 The :attr:`mock_calls` list is checked for the calls. 344 they must all appear in :attr:`mock_calls`. 411 :attr:`method_calls` and :attr:`mock_calls` attributes of this one. 612 :attr:`method_calls` and :attr:`mock_calls` are :data:`call` objects. 659 .. attribute:: mock_calls 661 :attr:`mock_calls` records *all* calls to the mock object, its methods, 676 >>> mock.mock_calls == expected 679 Members of :attr:`mock_calls` are :data:`call` objects. These can be 685 The way :attr:`mock_calls` are recorded means that where nested 692 >>> mock.mock_calls [all …]
|
/external/chromium-trace/catapult/devil/devil/utils/lazy/ |
D | weak_constant_test.py | 52 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/cpython3/Lib/unittest/ |
D | mock.py | 202 funcopy.mock_calls = _CallList() 213 funcopy.mock_calls = _CallList() 508 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock 544 self.mock_calls = _CallList() 855 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls) 860 'Actual: %r' % (_CallList(calls), self.mock_calls) 982 self.mock_calls.append(_Call(('', args, kwargs))) 997 _new_parent.mock_calls.append(this_mock_call)
|
/external/python/mock/mock/ |
D | mock.py | 325 funcopy.mock_calls = _CallList() 336 funcopy.mock_calls = _CallList() 621 mock_calls = _delegating_property('mock_calls') variable in NonCallableMock 657 self.mock_calls = _CallList() 963 all_calls = _CallList(self._call_matcher(c) for c in self.mock_calls) 968 'Actual: %r' % (_CallList(calls), self.mock_calls) 1075 self.mock_calls.append(_Call(('', args, kwargs))) 1105 _new_parent.mock_calls.append(this_mock_call)
|