Skip to main content

Assertion library for python unit testing with a fluent API

Project description

Dead simple assertion library for python unit testing with a fluent API that supports Python 2 and 3.


Just import the assert_that function, and away you go:

from assertpy import assert_that

def test_something():
    assert_that(1 + 2).is_equal_to(3)
    assert_that(['a', 'b', 'c']).contains('a').does_not_contain('x')

Of course, assertpy works best with a python test runner like pytest (our favorite) or Nose.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for assertpy, version 0.15
Filename, size File type Python version Upload date Hashes
Filename, size assertpy-0.15.tar.gz (14.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page