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.1.macosx-10.8-intel.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84984c1a93abaae246f34d227af4c733453e742324616f2d9e2917160817f0f |
|
MD5 | a83e914aad0e2ed0a94d7dc5f9ae1a8f |
|
BLAKE2b-256 | fd28c0ca2692260103e468f19bf952049f38c76b1df55313fbf75d3b4304d64d |