METADATA 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Metadata-Version: 2.0
  2. Name: sure
  3. Version: 1.4.11
  4. Summary: utility belt for automated testing in python for python
  5. Home-page: http://github.com/gabrielfalcao/sure
  6. Author: Timo Furrer
  7. Author-email: tuxtimo@gmail.com
  8. License: UNKNOWN
  9. Platform: UNKNOWN
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Console
  12. Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
  13. Classifier: Operating System :: MacOS :: MacOS X
  14. Classifier: Operating System :: POSIX
  15. Classifier: Operating System :: POSIX :: Linux
  16. Classifier: Programming Language :: Python
  17. Classifier: Programming Language :: Python :: 2
  18. Classifier: Programming Language :: Python :: 2.7
  19. Classifier: Programming Language :: Python :: 3
  20. Classifier: Programming Language :: Python :: 3.4
  21. Classifier: Programming Language :: Python :: 3.5
  22. Classifier: Programming Language :: Python :: 3.6
  23. Classifier: Programming Language :: Python :: 3.7
  24. Classifier: Programming Language :: Python :: Implementation
  25. Classifier: Programming Language :: Python :: Implementation :: CPython
  26. Classifier: Programming Language :: Python :: Implementation :: PyPy
  27. Classifier: Topic :: Software Development :: Testing
  28. Requires-Dist: mock
  29. Requires-Dist: six
  30. sure
  31. ====
  32. An idiomatic testing library for python with powerful and flexible assertions. Sure
  33. is heavily inspired in `RSpec Expectations <http://rspec.info/documentation/3.5/rspec-expectations/>`_ and `should.js <https://github.com/shouldjs/should.js>`_
  34. |Build Status| |PyPI package version| |PyPI python versions| |Join the chat at https://gitter.im/gabrielfalcao/sure|
  35. Installing
  36. ----------
  37. .. code:: bash
  38. $ pip install sure
  39. Documentation
  40. -------------
  41. Available in the `website <https://sure.readthedocs.io/en/latest/>`__ or under the
  42. ``docs`` directory.
  43. You can also build the documentation locally using sphinx:
  44. .. code:: bash
  45. make docs
  46. Here is a tease
  47. ---------------
  48. Equality
  49. ~~~~~~~~
  50. (number).should.equal(number)
  51. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  52. .. code:: python
  53. import sure
  54. (4).should.be.equal(2 + 2)
  55. (7.5).should.eql(3.5 + 4)
  56. (3).shouldnt.be.equal(5)
  57. Assert dictionary and its contents
  58. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  59. .. code:: python
  60. {'foo': 'bar'}.should.equal({'foo': 'bar'})
  61. {'foo': 'bar'}.should.have.key('foo').which.should.equal('bar')
  62. "A string".lower().should.equal("a string") also works
  63. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  64. .. code:: python
  65. "Awesome ASSERTIONS".lower().split().should.equal(['awesome', 'assertions'])
  66. .. |Build Status| image:: https://travis-ci.org/gabrielfalcao/sure.png?branch=master
  67. :target: https://travis-ci.org/gabrielfalcao/sure
  68. .. |PyPI package version| image:: https://badge.fury.io/py/sure.svg
  69. :target: https://badge.fury.io/py/sure
  70. .. |PyPI python versions| image:: https://img.shields.io/pypi/pyversions/sure.svg
  71. :target: https://pypi.python.org/pypi/sure
  72. .. |Join the chat at https://gitter.im/gabrielfalcao/sure| image:: https://badges.gitter.im/gabrielfalcao/sure.svg
  73. :target: https://gitter.im/gabrielfalcao/sure?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge