Add new helper functions for checking function call results.

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

Christian Hammond
kgb
master
f006e4c...
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 Trowbridge
  1. Ship It!
  2. 
      
Christian Hammond
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (910ae0c)
Loading...