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.0.macosx-10.8-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 613f02ec4dcce70bf82ac0e55b76d94329f2a2c9b768a04ee777d6216a65153d |
|
MD5 | 67b1f33059abdf235fdc8cb9a9c484d7 |
|
BLAKE2b-256 | 08fb2ff34f1503a0196bf4ed2990aadbe03340739ec6d694d1319d838634a4f8 |