Add new SpyOpReturnInOrder and SpyOpRaiseInOrder spy operations.
Review Request #11799 — Created Aug. 20, 2021 and submitted — Latest diff uploaded
SpyOpReturnInOrderis a mix betweenSpyOpReturnand
SpyOpMatchInOrder. It takes a list of values, and will return a value
for each call made, in the order provided. If a call once the list is
exhausted, an exception will be raised.
SpyOpRaiseInOrderis theSpyOpRaiseequivalent. It will raise
exceptions in order.
All unit tests pass in Python 2 and 3.