verify: Release v1.1.0

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:

from verify import expect

expect(some_value).Float().Greater(5)

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.

ensure(some_value).Float().is_greater_than(5).to_not_be_equal(3.5)

What is verify?

A painless assertion and validation library for Python.

It is Python 2.7+ and 3.3+ compatible.

Download

Get it on Github and PyPI.

Changes

Features

  • Add ensure as alias of expect.
  • Add to_be_* and is_* aliases for all assertions.

Bug Fixes

None

Comments

Comments powered by Disqus