Add new helper functions for checking function call results.

Review Request #9414 — Created Dec. 2, 2017 and submitted

Information

kgb
master
f006e4c...

Reviewers

kgb

This introduces new methods to check the results of function calls. It
introduces returned() (for checking return values), raised() (for
checking raised exception types), raised_with_message() (for checking
raised exception types and exception messages), and last_* variations
of each.

It also brings all call checks (called_with(), returned(),
raised(), and raised_with_message()) to SpyCall, giving callers a
way to more conveniently determine results from individual calls.

Unit tests pass.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (910ae0c)
Loading...