For a call object that represents multiple calls, `call_list` returns a list of all the intermediate calls as well as the final call.
(self)
| 2730 | |
| 2731 | |
| 2732 | def call_list(self): |
| 2733 | """For a call object that represents multiple calls, `call_list` |
| 2734 | returns a list of all the intermediate calls as well as the |
| 2735 | final call.""" |
| 2736 | vals = [] |
| 2737 | thing = self |
| 2738 | while thing is not None: |
| 2739 | if thing._mock_from_kall: |
| 2740 | vals.append(thing) |
| 2741 | thing = thing._mock_parent |
| 2742 | return _CallList(reversed(vals)) |
| 2743 | |
| 2744 | |
| 2745 | call = _Call(from_kall=False) |