Skip to main content

Stupidly-simple python mocking utility with moxie.

Project description

mocksey

Stupidly-simple python mocking utility with moxie.

BuildImage

Latest PyPI version Number of PyPI downloads

Mocksey Motivation

I was teaching a class on unit testing to a group of co-workers who were familiar with Simple Test for PHP so I hacked together what is becoming Mocksey.

Mocksey the TDD’d version of that TDD utilty. It’s so meta even this acronym.

Installation

Either find mocksey on PyPI or install it with pip or easy_install

pip install mocksey
#or
easy_install mocksey

Basic Usage

It’s pretty simple. Create a mocked object with generate_mock, inject it (or monkey patch) and set up your assertions. After your function call(s), simply call ‘run_asserts’ and win!

The unit tests are a pretty decent working example.

License

This software is hereby released under the MIT License, as seen in the LICENSE file

Project details


Release history Release notifications

History Node

0.3.1

History Node

0.3.0

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

This version
History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mocksey-0.1.5.tar.gz (3.3 kB) Copy SHA256 hash SHA256 Source None May 5, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page