Message280756
But since autospec is set as True, then shouldnt attach_mock throw an
exception when called with an attribute that doesn't exist?
On Mon, Nov 14, 2016 at 5:12 PM, Michael Foord <report@bugs.python.org>
wrote:
>
> Michael Foord added the comment:
>
> It should be perfectly valid to use attach_mock with an attribute that
> doesn't already exist. Part of it's purpose is to create new attributes.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue28569>
> _______________________________________
> |
|
Date |
User |
Action |
Args |
2016-11-14 11:45:00 | shmed | set | recipients:
+ shmed, michael.foord, anfedorov |
2016-11-14 11:45:00 | shmed | link | issue28569 messages |
2016-11-14 11:45:00 | shmed | create | |
|