Assertion framework for python unit testing with a fluent API
Project description
Dead simple assertions framework for unit testing in Python with a nice fluent API.
Usage
Just import the assert_that function, and away you go:
from assertpy import assert_that
class TestSomething(object):
def test_something(self):
assert_that(1 + 2).is_equal_to(3)
assert_that('foobar').is_length(6).starts_with('foo').ends_with('bar')
Of course, assertpy works best with a python test runner like Nose or pytest.
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.6.tar.gz
(5.7 kB
view details)
File details
Details for the file assertpy-0.6.tar.gz.
File metadata
- Download URL: assertpy-0.6.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b85a26e6ac0e71a8294ed10de414a31bcab4753b7a83f537fd391e7616fc5d2d
|
|
| MD5 |
f1f837f325e31d04df56c0e2937e2789
|
|
| BLAKE2b-256 |
bbd319ab49fc90d26ecc0b1ad1370b98ade740ea86f7d4d809ed1c0737e07b4e
|