<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello all,<br>
<br>
I've done a new release of the mock module, the first in a while.
Konrad Delong has joined me as a maintainer of mock and has been a
great help in getting this release out. As there are several major new
features this is a beta release, with 0.7.0 final coming out in a few
weeks assuming there are no major problems discovered. Please download
it and try it out:<br>
<br>
* <a class="moz-txt-link-freetext" href="http://pypi.python.org/pypi/mock/0.7.0b1">http://pypi.python.org/pypi/mock/0.7.0b1</a><br>
<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
mock is a Python module that provides a core Mock class. It is intended
to
reduce the need for creating a host of trivial stubs throughout your
test suite.
After performing an action, you can make assertions about which methods
/
attributes were used and arguments they were called with. You can also
specify
return values and set needed attributes in the normal way.<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
mock is tested on Python versions 2.4-2.7 and Python 3.<br>
<br>
Full documentation is included in the distribution.<br>
<br>
Changes in 0.7.0 (including the much awaited magic method support) are:<br>
<br>
* Addition of ``mocksignature``<br>
* Ability to mock magic methods<br>
* Ability to use patch and patch.object as class decorators<br>
* Renamed ``patch_object`` to ``patch.object`` (``patch_object`` is
deprecated)<br>
* Addition of ``MagicMock`` class with all magic methods pre-created
for you<br>
* Python 3 compatibility (tested with 3.2 but should work with 3.0
&amp; 3.1 as<br>
&nbsp; well)<br>
* Addition of ``patch.dict(...)`` for changing dictionaries during a
test<br>
* Addition of ``mocksignature`` argument to ``patch`` and
``patch_object``<br>
* ``help(mock)`` works now (on the module). Can no longer use
``__bases__``<br>
&nbsp; as a valid sentinel name (thanks to Stephen Emslie for reporting and<br>
&nbsp; diagnosing this)<br>
* Addition of soft comparisons: call_args, call_args_list and
method_calls<br>
&nbsp; return now tuple-like objects which compare equal even when empty args<br>
&nbsp; or kwargs are skipped<br>
* Added some docstrings.<br>
* BUGFIX: ``side_effect`` now works with ``BaseException`` exceptions
like<br>
&nbsp; ``KeyboardInterrupt``<br>
* BUGFIX: patching the same object twice now restores the patches
correctly<br>
* The tests now require `unittest2
<a class="moz-txt-link-rfc2396E" href="http://pypi.python.org/pypi/unittest2">&lt;http://pypi.python.org/pypi/unittest2&gt;</a>`_<br>
&nbsp; to run<br>
* `Konrad Delong <a class="moz-txt-link-rfc2396E" href="http://konryd.blogspot.com/">&lt;http://konryd.blogspot.com/&gt;</a>`_ added as
co-maintainer<br>
<br>
The main tasks before a 0.7.0 final release are finishing the
documentation and docstrings, plus allowing `patch.dict(...)` to act as
a context manager (currently decorator only).<br>
<br>
All the best,<br>
<br>
Michael Foord<br>
<pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.ironpythoninaction.com/">http://www.ironpythoninaction.com/</a>
<a class="moz-txt-link-freetext" href="http://www.voidspace.org.uk/blog">http://www.voidspace.org.uk/blog</a>

READ CAREFULLY. By accepting and reading this email you agree, on behalf of your employer, to release me from all obligations and waivers arising from any and all NON-NEGOTIATED agreements, licenses, terms-of-service, shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, non-compete and acceptable use policies (&#8221;BOGUS AGREEMENTS&#8221;) that I have entered into with your employer, its partners, licensors, agents and assigns, in perpetuity, without prejudice to my ongoing rights and privileges. You further represent that you have the authority to release me from any BOGUS AGREEMENTS on behalf of your employer.

</pre>
</body>
</html>