skip to navigation
skip to content

sure 1.4.7

utility belt for automated testing in python for python

Package Documentation

An idiomatic testing library for python with powerful and flexible assertions. Sure is heavily inspired in RSpec Expectations and should.js


$ pip install sure


Available in the website or under the docs directory.

You can also build the documentation locally using sphinx:

make docs

Here is a tease



import sure

(4) + 2)
(7.5).should.eql(3.5 + 4)


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'])
File Type Py Version Uploaded on Size
sure-1.4.7-py2-none-any.whl (md5) Python Wheel py2 2017-10-02 22KB
sure-1.4.7-py3-none-any.whl (md5) Python Wheel py3 2017-10-02 22KB
sure-1.4.7.tar.gz (md5) Source 2017-10-02 44KB