More Testing! Extends the `unittest.TestCase` to provide deep, yet fuzzy, structural comparisons
Project description
FuzzyTestCase extends the unittest.TestCase to provide deep, yet fuzzy, structural comparisons; intended for use in test cases dealing with JSON.
Details
The primary method is the assertEqual method with the following parameters:
test_value - the value, or structure being tested
expected - the expected value or structure. In the case of a number, the accuracy is controlled by the following parameters. In the case of a structure, only the not-null parameters of expected are tested for existence.
msg - Detailed error message if there is no match
digits - number of decimal places of accuracy required to consider two values equal
places - number of significant digits used to compare values for accuracy
delta - maximum difference between values for them to be equal
This method, assertEqual is recursive, so it does a deep comparison, and can not handle loops.
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
File details
Details for the file mo-testing-1.0.17056.zip
.
File metadata
- Download URL: mo-testing-1.0.17056.zip
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b43c8771be55cc9f60233c3b6b5f2d3342281634083795100468ed91f1ecdc1 |
|
MD5 | 468d130cb15b8d78552a927dc6f14c86 |
|
BLAKE2b-256 | 985c9bab3c424c05e682680229681767375569f9eab22272f5f5a8ba8cbf6b9b |
File details
Details for the file mo_testing-1.0.17056-py2.7.egg
.
File metadata
- Download URL: mo_testing-1.0.17056-py2.7.egg
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0012d184fefc21c5a99b4d6f7d89619494fe838fba4588eff68dce7c796cc3f |
|
MD5 | a8dad957508917961e89ffda114d9f26 |
|
BLAKE2b-256 | ed1493808acb6a6e3da39bed8c15434d422285185871dc35c6060b89428c7814 |