Testy
All the assertions from Testify but cleaned up a bit & with added py3k support.
Should work with Python 2.5-3.3 and pypy 1.9. To make sure it will work for you: python setup.py test.
Installation
There are no dependencies. Simply: pip install testy
Example Usage
import re
import unittest
from testy.assertions import assert_dict_subset, assert_raises, assert_match_regex
class MyTestCase(unittest.TestCase):
def setUp(self):
self.x = dict(a=1, b=2)
def test_x(self):
assert_dict_subset(dict(b=2), self.x)
def test_exception(self):
with assert_raises(TypeError):
raise TypeError("Call some code you expect to fail here.")
def test_pattern(self):
pattern = re.compile('\w')
assert_match_regex(pattern, 'abc')
def tearDown(self):
self.x = None
if __name__ == "__main__":
unittest.main()
Metadata
Release files for testy 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| testy-0.4.tar.gz | 9.9 kB | Without provenance | Details for testy-0.4.tar.gz |
Release files / testy-0.4.tar.gz
| Download URL | testy-0.4.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a0cb790de19741cf72124e15821724dcf47337fce4afc9a099bd449847d6229
|
|
BLAKE2b-256 checksum How to use checksums |
8001bae95140c450a481efeedfc24daa98eacb95635003de2b980896ecfb2b4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for testy 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.