/usr/lib/python3/dist-packages/sure-1.2.6.egg-info/PKG-INFO is in python3-sure 1.2.5-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | Metadata-Version: 1.0
Name: sure
Version: 1.2.6
Summary: utility belt for automated testing in python for python
Home-page: http://github.com/gabrielfalcao/sure
Author: Gabriel Falcao
Author-email: gabriel@nacaolivre.org
License: UNKNOWN
Description: sure ``1.2.5``
==============
A testing library for python with powerful and flexible assertions. Sure
is heavily inspired by
`should.js <https://github.com/visionmedia/should.js/>`__
|Build Status|
Installing
==========
::
user@machine:~$ [sudo] pip install sure
Documentation
=============
Available in the `website <http://falcao.it/sure>`__ or under the
``spec`` directory.
You can also build the documentation locally using markment:
.. code:: bash
pip install markment
markment --server --theme=rtd ./spec/
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)
(2).should.equal(8 / 4)
(3).shouldnt.be.equal(5)
{'a': 'collection'}.should.equal({'a': 'collection'}) does deep comparison
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: python
{'foo': 'bar'}.should.equal({'foo': 'bar'})
{'foo': 'bar'}.should.eql({'foo': 'bar'})
{'foo': 'bar'}.must.be.equal({'foo': '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
Platform: UNKNOWN
|