Stupidly-simple python mocking utility with moxie.
Project description
mocksey
Stupidly-simple python mocking utility with moxie.
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mocksey-0.1.4.macosx-10.8-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | b11c55ba8915b142b8c9bb20e0047df3ed3f4370d5d38449279ff0260a6da521 |
|
MD5 | a46e64ea7b627aac47d87a664b2cb6c8 |
|
BLAKE2b-256 | aa4d8055ee43bb612d7787819d252e39b117d26751e8eabe2fdf8f4bb0de1851 |