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 fudge

How to install fudge

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install fudge
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
0.9.4 Available View build log
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
Windows (64-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
0.9.4 Available View build log
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
Mac OS X (10.5+)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
0.9.4 Available View build log
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
Linux (32-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
0.9.4 Available View build log
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
Linux (64-bit)
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
0.9.4 Available View build log
1.0.3 Available View build log
1.0.2 Available View build log
1.0.1 Available View build log
1.0.0 Available View build log
0.9.6 Available View build log
0.9.5 Available View build log
1.0.3 Available View build log
 
License
The MIT License
Imports
Lastest release
version 1.0.3 on Mar 13th, 2011

Complete documentation is available at http://farmdev.com/projects/fudge/

Fudge is a Python module for using fake objects (mocks and stubs) to test real ones.

In readable Python code, you declare what methods are available on your fake and how they should be called. Then you inject that into your application and start testing. This declarative approach means you don't have to record and playback actions and you don't have to inspect your fakes after running code. If the fake object was used incorrectly then you'll see an informative exception message with a traceback that points to the culprit.

Here is a quick preview of how you can test code that sends email without actually sending email:

@fudge.patch('smtplib.SMTP')
def test_mailer(FakeSMTP):
    # Declare how the SMTP class should be used:
    (FakeSMTP.expects_call()
             .expects('connect')
             .expects('sendmail').with_arg_count(3))
    # Run production code:
    send_mail()
    # ...expectations are verified automatically at the end of the test

Subscribe to package updates

Last updated Mar 13th, 2011

Download Stats

Last month:3

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.