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.2.macosx-10.8-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35b1308e1f92f95da87d14e30319ac7222bb607dc4363d8208fa3cc0fa09689f |
|
MD5 | 0cb78ea15673f0c31b19d0efa229bf21 |
|
BLAKE2b-256 | 431653e01bda35c7b1d2081d4fdcaa82ca12b5fb52bcc3024d083f91a7fe5289 |