Python\'s unittest.mock built-in library provides patch.object, which let\'s you:
unittest.mock
patch the named member (attribute) on an object (target) w