Sha256: 1eca08745acf0e2586faaff8b0b8225f3bc2a2e4921ef260a4587f772fe8699a

Contents?: true

Size: 1.16 KB

Versions: 16

Compression:

Stored size: 1.16 KB

Contents

Name: mock
URL: http://www.voidspace.org.uk/python/mock/
Version: 1.0.0
License: BSD
License File: LICENSE.txt

Description:
mock is a library for testing in Python. It allows you to replace parts of your
system under test with mock objects and make assertions about how they have been
used. mock is now part of the Python standard library, available as
unittest.mock in Python 3.3 onwards.
mock provides a core Mock class removing the need to create a host of 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.
Additionally, mock provides a patch() decorator that handles patching module and
class level attributes within the scope of a test, along with sentinel for
creating unique objects. Mock is very easy to use and is designed for use with
unittest. Mock is based on the ‘action -> assertion’ pattern instead of
‘record -> replay’ used by many mocking frameworks. mock is tested on Python
versions 2.4-2.7, Python 3 plus the latest versions of Jython and PyPy.

Modifications:
None.

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
libv8-7.8.279.23.0beta1 vendor/depot_tools/third_party/mock/README.chromium
libv8-7.4.288.28.0beta1 vendor/depot_tools/third_party/mock/README.chromium
libv8-7.3.492.27.3beta1 vendor/depot_tools/third_party/mock/README.chromium
libv8-7.3.492.27.1 vendor/depot_tools/third_party/mock/README.chromium
libv8-7.3.492.27.0 vendor/depot_tools/third_party/mock/README.chromium
libv8-7.3.492.27.0beta1 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.7.288.46.1 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.7.288.46.0 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.7.288.46.1beta0 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.3.292.48.1 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.3.292.48.0 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.3.292.48.0beta2 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.3.292.48.0beta1 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.2.414.42.1 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.2.414.42.0 vendor/depot_tools/third_party/mock/README.chromium
libv8-6.2.414.42.0beta1 vendor/depot_tools/third_party/mock/README.chromium