assertpy
========
Simple assertions library for unit testing in Python with a nice fluent API. Supports both Python 2 and 3.
Usage
-----
Just import the ``assert_that`` function, and away you go...::
from assertpy import assert_that
def test_something():
assert_that(1 + 2).is_equal_to(3)
assert_that('foobar').is_length(6).starts_with('foo').ends_with('bar')
assert_that(['a', 'b', 'c']).contains('a').does_not_contain('x')
Of course, assertpy works best with a python test runner like `pytest <http://pytest.org/>`_ (our favorite) or `Nose <http://nose.readthedocs.org/>`_.
Install
-------
The assertpy library is available via `PyPI <https://pypi.org/project/assertpy/>`_.
Just install with::
pip install assertpy
Or, if you are a big fan of `conda <https://conda.io/>`_ like we are, there is an
`assertpy-feedstock <https://github.com/conda-forge/assertpy-feedstock>`_ for
`Conda-Forge <https://conda-forge.org/>`_ that you can use::
conda install assertpy --channel conda-forge
Raw data
{
"_id": null,
"home_page": "https://github.com/assertpy/assertpy",
"name": "assertpy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "test,testing,assert,assertion,assertthat,assert_that,nose,nosetests,pytest,unittest",
"author": "Justin Shacklette",
"author_email": "justin@saturnboy.com",
"download_url": "https://files.pythonhosted.org/packages/4f/39/720b5d4463612a40a166d00999cbb715fce3edaf08a9a7588ba5985699ec/assertpy-1.1.tar.gz",
"platform": "",
"description": "assertpy\n========\n\nSimple assertions library for unit testing in Python with a nice fluent API. Supports both Python 2 and 3.\n\nUsage\n-----\n\nJust import the ``assert_that`` function, and away you go...::\n\n from assertpy import assert_that\n\n def test_something():\n assert_that(1 + 2).is_equal_to(3)\n assert_that('foobar').is_length(6).starts_with('foo').ends_with('bar')\n assert_that(['a', 'b', 'c']).contains('a').does_not_contain('x')\n\nOf course, assertpy works best with a python test runner like `pytest <http://pytest.org/>`_ (our favorite) or `Nose <http://nose.readthedocs.org/>`_.\n\nInstall\n-------\n\nThe assertpy library is available via `PyPI <https://pypi.org/project/assertpy/>`_.\nJust install with::\n\n pip install assertpy\n\nOr, if you are a big fan of `conda <https://conda.io/>`_ like we are, there is an\n`assertpy-feedstock <https://github.com/conda-forge/assertpy-feedstock>`_ for\n`Conda-Forge <https://conda-forge.org/>`_ that you can use::\n\n conda install assertpy --channel conda-forge",
"bugtrack_url": null,
"license": "BSD",
"summary": "Simple assertion library for unit testing in python with a fluent API",
"version": "1.1",
"split_keywords": [
"test",
"testing",
"assert",
"assertion",
"assertthat",
"assert_that",
"nose",
"nosetests",
"pytest",
"unittest"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f9bd832653d6372159640a093e2b3220",
"sha256": "acc64329934ad71a3221de185517a43af33e373bb44dc05b5a9b174394ef4833"
},
"downloads": -1,
"filename": "assertpy-1.1.tar.gz",
"has_sig": false,
"md5_digest": "f9bd832653d6372159640a093e2b3220",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 25421,
"upload_time": "2020-07-19T14:39:02",
"upload_time_iso_8601": "2020-07-19T14:39:02.462738Z",
"url": "https://files.pythonhosted.org/packages/4f/39/720b5d4463612a40a166d00999cbb715fce3edaf08a9a7588ba5985699ec/assertpy-1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2020-07-19 14:39:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "assertpy",
"github_project": "assertpy",
"travis_ci": true,
"coveralls": true,
"github_actions": false,
"lcname": "assertpy"
}