sure 1.2.11
A testing library for python with powerful and flexible assertions. Sure is heavily inspired by should.js
Installing
user@machine:~$ [sudo] pip install sure
Documentation
Available in the website or under the spec directory.
You can also build the documentation locally using markment:
pip install markment
markment --server --theme=rtd ./spec/
Here is a tease
Equality
(number).should.equal(number)
import sure
(4).should.be.equal(2 + 2)
(7.5).should.eql(3.5 + 4)
(2).should.equal(8 / 4)
(3).shouldnt.be.equal(5)
Assert dictionary and its contents
{'foo': 'bar'}.should.equal({'foo': 'bar'})
{'foo': 'bar'}.should.have.key('foo').which.should.equal('bar')
“A string”.lower().should.equal(“a string”) also works
"Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])
Release files for sure 1.2.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sure-1.2.12.tar.gz | 27.9 kB | Details |
Release files / sure-1.2.12.tar.gz
| Download URL | sure-1.2.12.tar.gz |
|---|---|
| Size | 27.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb533bce1409d957bec2764392d1dbf91f2167d593eb6b9dcaca647c3ee7dd5e
|
|
BLAKE2b-256 checksum How to use checksums |
ace1ac82035115b6a1cb39d1c003aed5bcc6f8f7ccdcb9f71a7cc62201044a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |