sure 0,0 travis-ci python

utility belt for automated testing in python (inspired by @visionmedia's should.js)

sure

A testing library for python with powerful and flexible assertions. Sure is heavily inspired by should.js <https://github.com/shouldjs/should.js>__

|Build Status| |PyPI package version| |PyPI python versions| |Join the chat at https://gitter.im/gabrielfalcao/sure|

Installing

::

[email protected]:~$ [sudo] pip install sure

Documentation

Available in the website <https://sure.readthedocs.io>__ or under the docs directory.

You can also build the documentation locally using sphinx:

.. code:: bash

make docs

Here is a tease

Equality ~~~~~~~~

(number).should.equal(number) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code:: python

import sure

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

(3).shouldnt.be.equal(5)

Assert dictionary and its contents ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code:: python

{'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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code:: python

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

.. |Build Status| image:: https://travis-ci.org/gabrielfalcao/sure.png?branch=master :target: https://travis-ci.org/gabrielfalcao/sure .. |PyPI package version| image:: https://badge.fury.io/py/sure.svg :target: https://badge.fury.io/py/sure .. |PyPI python versions| image:: https://img.shields.io/pypi/pyversions/sure.svg :target: https://pypi.python.org/pypi/sure .. |Join the chat at https://gitter.im/gabrielfalcao/sure| image:: https://badges.gitter.im/gabrielfalcao/sure.svg :target: https://gitter.im/gabrielfalcao/sure?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge

Related Repositories

hello-world

hello-world

Hello world in every computer language. Thanks to everyone who contributes to this, make sure to see CONTRIBUTING.md for contribution instructions! ...

Heyoffline

Heyoffline

Warn your users when their network goes down. Make sure they don't lose anything. ...

kaleistyleguide

kaleistyleguide

This project aims at making sure your style sheets are fully documented whilst being synchronized with your webpages styles. To do this it actually uses your live stylesheets in so that at anytime you can review how your styleguide looks. ...

PerfKitBenchmarker

PerfKitBenchmarker

Perfkit Benchmarker contains set of benchmarks to measure and compare cloud offerings. The benchmarks use defaults to reflect what most users will see. PerfKit Benchmarker is licensed under the Apache 2 license terms. Please make sure to read, understand ...

html-proofer

html-proofer

Test your rendered HTML files to make sure they're accurate. ...


Top Contributors

gabrielfalcao timofurrer clarete spulec Scorpil benjamin-hodgson CyrilRoelandteNovance msabramo matkor dzen spaceCamel alunduil codito adamchainz bfoz chris-martin cwacek danielgatis czarneckid fabiomcosta jamielennox koobs millarm nijel GuyHoozdis gitter-badger vmalloc

Releases

-   v1.4.0 zip tar
-   v1.3.0 zip tar
-   1.2.9 zip tar
-   1.2.5 zip tar
-   1.2.4 zip tar
-   1.2.2 zip tar
-   1.2.1 zip tar
-   1.2.0 zip tar
-   1.1.7 zip tar
-   1.1.6 zip tar
-   1.1.5 zip tar
-   1.0.6 zip tar
-   1.0.3 zip tar
-   1.0.2-alpha zip tar
-   1.0.1alpha zip tar
-   1.0.0alpha zip tar
-   0.10.4 zip tar
-   0.10.3 zip tar
-   0.10.2 zip tar
-   0.10.1 zip tar
-   0.10.0 zip tar
-   0.9.3 zip tar
-   0.9.2 zip tar
-   0.9.1 zip tar
-   0.9.0 zip tar
-   0.8.1 zip tar
-   0.8.0 zip tar
-   0.6 zip tar
-   0.5.1 zip tar
-   0.5.0 zip tar