/third_party/python/Lib/unittest/test/testmock/ |
D | testhelpers.py | 7 call, _Call, create_autospec, MagicMock, 93 kall = _Call() 94 self.assertEqual(kall, _Call()) 95 self.assertEqual(kall, _Call(('',))) 96 self.assertEqual(kall, _Call(((),))) 97 self.assertEqual(kall, _Call(({},))) 98 self.assertEqual(kall, _Call(('', ()))) 99 self.assertEqual(kall, _Call(('', {}))) 100 self.assertEqual(kall, _Call(('', (), {}))) 101 self.assertEqual(kall, _Call(('foo',))) [all …]
|
D | testmock.py | 13 NonCallableMagicMock, AsyncMock, _Call, _CallList, 2121 self.assertEqual(type(call.name), _Call) 2122 self.assertEqual(type(call.name().name), _Call) 2128 self.assertEqual(type(call.parent), _Call) 2129 self.assertEqual(type(call.parent().parent), _Call)
|
/third_party/node/deps/v8/tools/dev/ |
D | update-compile-commands.py | 35 def _Call(cmd, silent=False): function 54 code = _Call("gn gen %s" % build_dir) 57 _Call("ninja -C %s build.ninja" % build_dir) 87 _Call("autoninja -C out/x64.release torque-language-server") 93 _Call("autoninja -C out/x64.debug v8_generated_cc_files") 98 _Call("ps -e | grep compiler_proxy > /dev/null", silent=True) != 0): 99 _Call("%s/goma_ctl.py ensure_start" % gomadir)
|
D | gm.py | 207 def _Call(cmd, silent=False): function 247 _Call("notify-send '{}' '{}'".format(summary, body), silent=True) 352 code = _Call("gn gen %s" % path) 355 code = _Call("gn clean %s" % path) 361 return _Call("autoninja -C %s %s" % (path, targets)) 374 _Call(cmdline) 381 _Call("%s/mkgrokdump > tools/v8heapconst.py" % 388 return _Call('"%s" ' % sys.executable + 509 _Call("pgrep -x compiler_proxy > /dev/null", silent=True) != 0): 510 _Call("%s/goma_ctl.py ensure_start" % GOMADIR)
|
D | gen-tags.py | 34 def _Call(cmd, silent=False): function 89 _Call("ctags --fields=+l -L " + gtags_filename)
|
/third_party/node/deps/v8/tools/ |
D | run-wasm-api-tests.py | 70 def _Call(cmd_list, silent=False): function 106 c = _Call([compiler[lang], "-c", language["cflags"], CFLAGS, 110 c = _Call([compiler["cc"], CFLAGS, compiler["ldflags"], obj_file, 115 c = _Call(["cd", self.tempdir, ";", exe_file])
|
/third_party/python/Lib/lib2to3/tests/ |
D | test_util.py | 79 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)")
|
/third_party/python/Lib/unittest/ |
D | mock.py | 915 expected = self._call_matcher(_Call((args, kwargs), two=True)) 985 expected = self._call_matcher(_Call((args, kwargs), two=True)) 1117 _call = _Call((args, kwargs), two=True) 1128 self.mock_calls.append(_Call(('', args, kwargs))) 1136 _new_parent.method_calls.append(_Call((method_call_name, args, kwargs))) 1142 this_mock_call = _Call((mock_call_name, args, kwargs)) 2194 _call = _Call((args, kwargs), two=True) 2259 expected = self._call_matcher(_Call((args, kwargs), two=True)) 2280 expected = self._call_matcher(_Call((args, kwargs), two=True)) 2429 class _Call(tuple): class [all …]
|
/third_party/python/Misc/NEWS.d/ |
D | 3.6.1rc1.rst | 458 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
|
D | 3.5.4rc1.rst | 797 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
|
D | 3.5.2rc1.rst | 874 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
|
D | 3.6.0a1.rst | 1392 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
|
D | 3.9.0a1.rst | 2527 Fix `NonCallableMock._call_matcher` returning tuple instead of `_Call`
|
D | 3.7.0a1.rst | 3684 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
|
D | 3.8.0a1.rst | 309 Internal attributes' names of unittest.mock._Call and
|