Home
last modified time | relevance | path

Searched refs:_Call (Results 1 – 23 of 23) sorted by relevance

/external/python/cpython3/Lib/unittest/test/testmock/
Dtesthelpers.py7 call, _Call, create_autospec, MagicMock,
78 kall = _Call()
79 self.assertEqual(kall, _Call())
80 self.assertEqual(kall, _Call(('',)))
81 self.assertEqual(kall, _Call(((),)))
82 self.assertEqual(kall, _Call(({},)))
83 self.assertEqual(kall, _Call(('', ())))
84 self.assertEqual(kall, _Call(('', {})))
85 self.assertEqual(kall, _Call(('', (), {})))
86 self.assertEqual(kall, _Call(('foo',)))
[all …]
Dtestmock.py11 NonCallableMagicMock, _Call, _CallList,
1791 self.assertEqual(type(call.name), _Call)
1792 self.assertEqual(type(call.name().name), _Call)
1798 self.assertEqual(type(call.parent), _Call)
1799 self.assertEqual(type(call.parent().parent), _Call)
/external/python/mock/mock/tests/
Dtesthelpers.py12 from mock.mock import _Call, _CallList
80 kall = _Call()
81 self.assertEqual(kall, _Call())
82 self.assertEqual(kall, _Call(('',)))
83 self.assertEqual(kall, _Call(((),)))
84 self.assertEqual(kall, _Call(({},)))
85 self.assertEqual(kall, _Call(('', ())))
86 self.assertEqual(kall, _Call(('', {})))
87 self.assertEqual(kall, _Call(('', (), {})))
88 self.assertEqual(kall, _Call(('foo',)))
[all …]
/external/v8/tools/dev/
Dgm.py151 def _Call(cmd, silent=False): function
197 _Call("notify-send '{}' '{}'".format(summary, body), silent=True)
241 code = _Call("gn gen %s" % path)
247 return _Call("autoninja -C %s %s" % (path, targets))
257 _Call("gdb -args %(path)s/mksnapshot "
270 return _Call("tools/run-tests.py --arch=%s --mode=%s %s" %
370 _Call("ps -e | grep compiler_proxy > /dev/null", silent=True) != 0):
371 _Call("%s/goma_ctl.py ensure_start" % GOMADIR)
Dgen-tags.py30 def _Call(cmd, silent=False): function
85 _Call("ctags --fields=+l -L " + gtags_filename)
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_util.py82 def _Call(self, name, args=None, prefix=None): member in Test_Call
100 self.assertStr(self._Call("A"), "A()")
101 self.assertStr(self._Call("b", kids[1]), "b(1,2,3)")
102 self.assertStr(self._Call("a.b().c", kids[2]), "a.b().c(1,3,2,4)")
103 self.assertStr(self._Call("d", kids[3], prefix=" "), " d(b, j)")
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_util.py79 def _Call(self, name, args=None, prefix=None): member in Test_Call
97 self.assertStr(self._Call("A"), "A()")
98 self.assertStr(self._Call("b", kids[1]), "b(1,2,3)")
99 self.assertStr(self._Call("a.b().c", kids[2]), "a.b().c(1,3,2,4)")
100 self.assertStr(self._Call("d", kids[3], prefix=" "), " d(b, j)")
/external/v8/src/js/
Dintl.js178 new GlobalRegExp('^(' + %_Call(ArrayJoin, ObjectKeys(AVAILABLE_LOCALES), '|') + ')$');
315 locale = %_Call(StringSubstring, locale, 0, pos);
543 return %StringToUpperCaseIntl(%_Call(StringSubstr, word, 0, 1)) +
544 %StringToLowerCaseIntl(%_Call(StringSubstr, word, 1));
561 var separator = %_Call(StringSubstring, match[2], 0, 1);
587 %_Call(ArrayPush, seen, %CanonicalizeLanguageTag(locales));
601 %_Call(ArrayPush, seen, tag);
Dmacros.py70 macro HAS_OWN_PROPERTY(obj, key) = (%_Call(ObjectHasOwnProperty, obj, key));
Darray.js357 return %_Call(ObjectToString, array);
359 return %_Call(func, array);
/external/pdfium/third_party/pymock/
Dmock.py962 self.call_args = _Call((args, kwargs), two=True)
963 self.call_args_list.append(_Call((args, kwargs), two=True))
967 self.mock_calls.append(_Call(('', args, kwargs)))
974 this_mock_call = _Call((_new_name, args, kwargs))
990 this_method_call = _Call((name, args, kwargs))
1969 class _Call(tuple): class
2084 return _Call(('', args, kwargs), name='()')
2087 return _Call((self.name, args, kwargs), name=name, parent=self)
2092 return _Call(name=attr, from_kall=False)
2094 return _Call(name=name, parent=self, from_kall=False)
[all …]
/external/python/cpython2/Lib/test/
D_mock_backport.py920 _call = _Call((args, kwargs), two=True)
923 self.mock_calls.append(_Call(('', args, kwargs)))
930 this_mock_call = _Call((_new_name, args, kwargs))
946 this_method_call = _Call((name, args, kwargs))
1910 class _Call(tuple): class
2028 return _Call(('', args, kwargs), name='()')
2031 return _Call((self.name, args, kwargs), name=name, parent=self)
2036 return _Call(name=attr, from_kall=False)
2038 return _Call(name=name, parent=self, from_kall=False)
2081 call = _Call(from_kall=False)
/external/python/cpython3/Lib/unittest/
Dmock.py969 _call = _Call((args, kwargs), two=True)
982 self.mock_calls.append(_Call(('', args, kwargs)))
990 _new_parent.method_calls.append(_Call((method_call_name, args, kwargs)))
996 this_mock_call = _Call((mock_call_name, args, kwargs))
1974 class _Call(tuple): class
2092 return _Call(('', args, kwargs), name='()')
2095 return _Call((self._mock_name, args, kwargs), name=name, parent=self)
2100 return _Call(name=attr, from_kall=False)
2102 return _Call(name=name, parent=self, from_kall=False)
2145 call = _Call(from_kall=False)
/external/python/mock/mock/
Dmock.py1072 _call = _Call((args, kwargs), two=True)
1075 self.mock_calls.append(_Call(('', args, kwargs)))
1082 this_mock_call = _Call((_new_name, args, kwargs))
1098 this_method_call = _Call((name, args, kwargs))
2091 class _Call(tuple): class
2208 return _Call(('', args, kwargs), name='()')
2211 return _Call((self.name, args, kwargs), name=name, parent=self)
2216 return _Call(name=attr, from_kall=False)
2218 return _Call(name=name, parent=self, from_kall=False)
2261 call = _Call(from_kall=False)
/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_invocation.py60 class _Call(grpc.Call): class
277 return read.response, _Call(handler)
/external/python/cpython2/Demo/parser/
Dunparse.py477 def _Call(self, t): member in Unparser
/external/python/cpython3/Tools/parser/
Dunparse.py548 def _Call(self, t): member in Unparser
/external/python/cpython3/Misc/NEWS.d/
D3.6.1rc1.rst458 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.7.2rc1.rst50 Internal attributes' names of unittest.mock._Call and
D3.5.4rc1.rst798 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.5.2rc1.rst875 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
D3.6.0a1.rst1393 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
D3.7.0a1.rst3689 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.