Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install capturemock

How to install CaptureMock

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install capturemock
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.11 Available View build log
0.3.1 Available View build log
0.3 Available View build log
0.2 Available View build log
0.1 Available View build log
Windows (64-bit)
0.11 Available View build log
0.3.1 Available View build log
0.3 Available View build log
0.2 Available View build log
0.1 Available View build log
Mac OS X (10.5+)
0.11 Available View build log
0.3.1 Available View build log
0.3 Available View build log
0.2 Available View build log
0.1 Available View build log
Linux (32-bit)
0.11 Available View build log
0.3.1 Available View build log
0.3 Available View build log
0.2 Available View build log
0.1 Available View build log
Linux (64-bit)
0.11 Available View build log
0.3.1 Available View build log
0.3 Available View build log
0.2 Available View build log
0.1 Available View build log
 
Author
Lastest release
version 0.11 on Apr 9th, 2011

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.

Subscribe to package updates

Last updated Apr 9th, 2011

Download Stats

Last month:5

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.