Understanding Unittest.Mock

Creating Spies

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

This segment focus on the usage of the wraps keyword, a not well known feature of mocks that allow inspecting interactions with real objects.

Keywords

  • usage
  • wraps keyword
  • mock
  • interaction
  • real objects

About this video

Author(s)
Mario Corchero
First online
25 December 2018
DOI
https://doi.org/10.1007/978-1-4842-4413-5_5
Online ISBN
978-1-4842-4413-5
Publisher
Apress
Copyright information
© Mario Corchero 2019