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.
Usage
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('foobar').is_length(6).starts_with('foo').ends_with('bar')
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.
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
assertpy-0.10.tar.gz
(9.0 kB
view details)
File details
Details for the file assertpy-0.10.tar.gz.
File metadata
- Download URL: assertpy-0.10.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14f1405fb6fdb3ca24614ea714a6a9b64bae9e7d2a24c435c431a972522d4315
|
|
| MD5 |
4b64776c22f85c2cd1df7b2e758a6312
|
|
| BLAKE2b-256 |
d9f0e324a502e942a894e6307e41ffa9a040331680df2f89adb542530bd93323
|