Lines Matching refs:expected_call
279 expected_call = self._recipe[self._index]
283 if not isinstance(expected_call, dict):
287 if expected_call["name"] != name:
289 (expected_call["name"], expected_call["args"], name))
292 if expected_call["cwd"] != kwargs.get("cwd"):
294 (expected_call["cwd"],
295 expected_call["name"],
296 expected_call["args"],
301 if len(args) > len(expected_call['args']):
307 for (expected_arg, actual_arg) in zip(expected_call['args'], args):
314 if expected_call['cb']:
316 expected_call['cb']()
322 if isinstance(expected_call['ret'], Exception):
323 raise expected_call['ret']
324 return expected_call['ret']