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.0.0.tar.gz
(11.5 kB
view hashes)