123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- Metadata-Version: 2.0
- Name: sure
- Version: 1.4.11
- Summary: utility belt for automated testing in python for python
- Home-page: http://github.com/gabrielfalcao/sure
- Author: Timo Furrer
- Author-email: tuxtimo@gmail.com
- License: UNKNOWN
- Platform: UNKNOWN
- Classifier: Development Status :: 5 - Production/Stable
- Classifier: Environment :: Console
- Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
- Classifier: Operating System :: MacOS :: MacOS X
- Classifier: Operating System :: POSIX
- Classifier: Operating System :: POSIX :: Linux
- Classifier: Programming Language :: Python
- Classifier: Programming Language :: Python :: 2
- Classifier: Programming Language :: Python :: 2.7
- Classifier: Programming Language :: Python :: 3
- Classifier: Programming Language :: Python :: 3.4
- Classifier: Programming Language :: Python :: 3.5
- Classifier: Programming Language :: Python :: 3.6
- Classifier: Programming Language :: Python :: 3.7
- Classifier: Programming Language :: Python :: Implementation
- Classifier: Programming Language :: Python :: Implementation :: CPython
- Classifier: Programming Language :: Python :: Implementation :: PyPy
- Classifier: Topic :: Software Development :: Testing
- Requires-Dist: mock
- Requires-Dist: six
- sure
- ====
- An idiomatic testing library for python with powerful and flexible assertions. Sure
- is heavily inspired in `RSpec Expectations <http://rspec.info/documentation/3.5/rspec-expectations/>`_ and `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
- ----------
- .. code:: bash
- $ pip install sure
- Documentation
- -------------
- Available in the `website <https://sure.readthedocs.io/en/latest/>`__ 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
|