Skip to main content

utility belt for automated testing in python for python

Project description

sure 1.2.10

A testing library for python with powerful and flexible assertions. Sure is heavily inspired by should.js

Build Status


user@machine:~$ [sudo] pip install sure


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



import sure

(4) + 2)
(7.5).should.eql(3.5 + 4)
(2).should.equal(8 / 4)


{‘a’: ‘collection’}.should.equal({‘a’: ‘collection’}) does deep comparison

{'foo': 'bar'}.should.equal({'foo': 'bar'})
{'foo': 'bar'}.should.eql({'foo': 'bar'})
{'foo': 'bar'}{'foo': 'bar'})

“A string”.lower().should.equal(“a string”) also works

"Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])

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

sure-1.2.11.tar.gz (27.9 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page