The sophisticated automated test tool for Python, featuring a test runner and a library with powerful and flexible assertions.
Originally authored by Gabriel Falcão.
Installing
pip install sure
Running tests
sure tests
For More Information:
sure --help
Documentation
Available on sure.readthedocs.io.
To build locally run:
make docs
Quick Library Showcase
from sure import expects expects(4).to.be.equal(2 + 2) expects(7.5).to.be.eql(3.5 + 4) expects(3).to.not_be.equal(5) expects(9).to_not.be.equal(11)
from sure import expects expects({'foo': 'bar'}).to.equal({'foo': 'bar'}) expects({'foo': 'bar'}).to.have.key('foo').being.equal('bar')
"Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])