Home
last modified time | relevance | path

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

/third_party/python/Lib/unittest/test/testmock/
Dtesthelpers.py7 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 …]
Dtestmock.py13 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/python/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)")
/third_party/python/Lib/unittest/
Dmock.py915 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/grpc/src/python/grpcio_testing/grpc_testing/_channel/
D_invocation.py60 class _Call(grpc.Call): class
277 return read.response, _Call(handler)
/third_party/mindspore/mindspore/ccsrc/vm/
Dvmimpl.h169 BaseRef _Call(const BaseRef &graph, const VectorRef &args);
Dvmimpl.cc287 BaseRef VM::_Call(const BaseRef &graph, const VectorRef &args) { in _Call() function in mindspore::compile::VM
379 auto ret = _Call(fn, args); in DispatchCall()
/third_party/python/Misc/NEWS.d/
D3.6.1rc1.rst458 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.5.4rc1.rst797 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.5.2rc1.rst874 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
D3.6.0a1.rst1392 Fix a regression in mock.MagicMock. _Call is a subclass of tuple (changeset
D3.9.0a1.rst2527 Fix `NonCallableMock._call_matcher` returning tuple instead of `_Call`
D3.7.0a1.rst3684 Fix unittest.mock._Call helper: don't ignore the name parameter anymore.
D3.8.0a1.rst309 Internal attributes' names of unittest.mock._Call and