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.14.tar.gz
(12.8 kB
view details)
File details
Details for the file assertpy-0.14.tar.gz
.
File metadata
- Download URL: assertpy-0.14.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1b7e591f490616e3f2707b6e511b91b188a8c6facb3a4ff0db2339b0a41d73c4
|
|
MD5 |
89e0e559c2a2cedbf17f6e092d07123a
|
|
BLAKE2b-256 |
8181066b50ac8e8946ed5a87c704fb08916454b7b5eb2f9cf30b73475495c4b0
|