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.
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.3.macosx-10.8-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d685e4c78c10c360afe33f22ff069324074c75c5d642198aecc4e59c3d3aff5 |
|
MD5 | 8159f800783d3ed32a0f71c1c0cdc632 |
|
BLAKE2b-256 | 1d0382e371e437712b069254803d581798f8d4d0150f503f891abe95d4411b3b |