Projects / CaptureMock

CaptureMock

CaptureMock provides capture-replay mocking for Python, on the command line and with client-server communication. CaptureMock's approach is a so-called capture-replay approach. This means that when you 'record' your mock, CaptureMock will observe the interaction between your code and the subsystem you are mocking out, and record it in a text file in its own format. When you then run your test in 'replay mode', CaptureMock can play the role of the subsystem in question, and the real subsystem does not need to even be installed. You can then choose, each time you run your tests, whether you wish to have the real subsystems present and verify/recreate the captured mocks, or to rely on the mocks captured by a previous run. If you are running in 'replay mode' and CaptureMock does not receive the same calls as previously, it will fail the test, and suggest that you may want to recreate the mocks in record mode.

Tags
Licenses
Operating Systems
Implementation
Translations

RSS Recent releases

  •  13 Nov 2011 00:17

Release Notes: This release supports "inheriting across the interception boundary", i.e., having your non-intercepted code inherit from classes you're intercepting. Traffic alterations ("alterations" in the RC file) are now also enabled on traffic from custom clients. Bugfixes have been made.

  •  08 Jun 2011 20:31

Release Notes: Bugs were fixed. A new mechanism whereby custom clients can be written in languages other than Python was added.

  •  08 Apr 2011 22:24

Release Notes: A single bugfix that makes it usable from nosetests and possibly also unittest2.

Screenshot

Project Spotlight

Monitoringplug

A collection of monitoring plugins for Nagios.

Screenshot

Project Spotlight

python-rope

A Python refactoring library.