Syed Suhail Ahmed added the comment: 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 <[email protected]> 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 <[email protected]> > <http://bugs.python.org/issue28569> > _______________________________________ > ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue28569> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
