Skip to content

Latest commit

 

History

History
100 lines (58 loc) · 2.22 KB

README.rst

File metadata and controls

100 lines (58 loc) · 2.22 KB

sure

https://img.shields.io/pypi/dm/sure https://img.shields.io/readthedocs/sure https://img.shields.io/github/license/gabrielfalcao/sure?label=Github%20License https://img.shields.io/pypi/v/sure https://img.shields.io/pypi/l/sure?label=PyPi%20License https://img.shields.io/pypi/format/sure https://img.shields.io/pypi/status/sure https://img.shields.io/pypi/pyversions/sure https://img.shields.io/pypi/implementation/sure https://img.shields.io/github/v/tag/gabrielfalcao/sure

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'])