Verify v1.1.0 has been released.
It was a feature release with several new method alias groups to help with constructing more natural sounding assertion statements.
Before this release, assertion statements would use Pascal case assertion methods:
With the v1.1.0 release, assertion statements can be constructred using either Expect...To Be or Ensure...Is aliases.
from verify import expect, ensure expect(some_value).to_be_float().to_be_greater_than(5).to_not_be_equal(3.5) ensure(some_value).is_float().is_greater_than(5).is_not_equal(3.5)
While it's encouraged to stick with one style or another, styles can be interchanged between expect and ensure to produce the same results.
What is verify?
A painless assertion and validation library for Python.
It is Python 2.7+ and 3.3+ compatible.
- Add ensure as alias of expect.
- Add to_be_* and is_* aliases for all assertions.