Michael Foord added the comment:

Note that you can use an object as the parameter to the spec argument rather 
than just a list of attributes. 

Hmmm... I'm not totally opposed to the addition of a "seal_mock" method 
(optionally with a recurse boolean for child mocks) being added to the 
Mock/MagicMock classes. It's quite a nice API. I don't like the idea of an 
additional Mock class for this.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30541>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to