(self)
| 371 | return self |
| 372 | |
| 373 | def verify(self) -> None: |
| 374 | predicted_calls: list[Call] = [] |
| 375 | for prediction in self.predictions: |
| 376 | predicted_calls.append(prediction["call"]) |
| 377 | if prediction["type"] == "SHOULD_BE_CALLED": |
| 378 | self.verify_should_be_called(prediction) |
| 379 | for call in self.calls: |
| 380 | if call not in predicted_calls: |
| 381 | raise Exception(f"Unpredicted call: {call}") |
| 382 | |
| 383 | def verify_should_be_called(self, prediction: Prediction) -> None: |
| 384 | if prediction["number"]: |
no test coverage detected