preggy is an assertion library for Python. (What were you ``expect()``ing?)
Project description
preggy is an assertion library for Python. (What were you ``expect()``ing?)
EXAMPLE
=======
from preggy import expect
def test_roses_are_red():
rose = Rose()
expect(rose.color).to_equal('red')
def test_violets_are_not_red():
violet = Violet()
expect(violet.color).not_to_equal('red')
For more info:
http://heynemann.github.io/preggy
EXAMPLE
=======
from preggy import expect
def test_roses_are_red():
rose = Rose()
expect(rose.color).to_equal('red')
def test_violets_are_not_red():
violet = Violet()
expect(violet.color).not_to_equal('red')
For more info:
http://heynemann.github.io/preggy
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
preggy-1.3.0.tar.gz
(17.2 kB
view details)
File details
Details for the file preggy-1.3.0.tar.gz.
File metadata
- Download URL: preggy-1.3.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
259faac13c664ddc60941b35242cbe2ac1dd6f18779b6c415b091fd823eda143
|
|
| MD5 |
e3444aea8c71a172353bd7e0c7fa2c72
|
|
| BLAKE2b-256 |
dabf880c46a42a77b5359aa016bcf22fdc83e84c13300001c78bb0dfd8e768b7
|