=====
:release-date: 2016-04-08 10:00 p.m. PDT
:release-by: Ask Solem
- Adds new Mock methods from Python 3.6:
- ``Mock.assert_called()``
- ``Mock.assert_not_called()``
- ``Mock.assert_called_once()``
- Adds ``Mock.create_patcher()``
Example:
.. code-block:: python
from case import Case, mock
patch_commands = mock.create_patcher('long_name.management.commands')
class test_FooCommand(Case):
patch_commands('FooCommand.authenticate')
def test_foo(self, authenticate):
pass
.. _version-1.0.3: