{ "info": { "author": "Petar Maric", "author_email": "petarmaric@uns.ac.rs", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "About\r\n=====\r\n\r\nExtra testing goodies for ``nose.tools``.\r\n\r\nAdds an ``issues_warnings`` decorator, where tests must issue one of the\r\nexpected warnings to pass (similar to ``nose.tools.raises`` for exceptions).\r\n\r\nIf installed on Python < 2.7 backports the new ``unittest.TestCase.assert*``\r\nmethods, and converts them to ``nose`` style assertions (spelled in PEP 8\r\nfashion, so ``assert_equal`` rather than ``assertEqual``):\r\n\r\n * ``assert_greater`` / ``assert_less`` / ``assert_greater_equal`` /\r\n ``assert_less_equal``\r\n\r\n * ``assert_regexp_matches`` / ``assert_not_regexp_matches``\r\n\r\n * ``assert_in`` / ``assert_not_in``\r\n\r\n * ``assert_is`` / ``assert_is_not``\r\n\r\n * ``assert_is_none`` / ``assert_is_not_none``\r\n\r\n * ``assert_dict_contains_subset``\r\n\r\n * and `more...`_.\r\n\r\n.. _`more...`: http://docs.python.org/2.7/whatsnew/2.7.html#updated-module-unittest\r\n\r\n\r\nInstallation\r\n============\r\n\r\nTo install ``nose_extra_tools`` run::\r\n\r\n $ pip install nose_extra_tools\r\n\r\n\r\nUsage examples\r\n==============\r\n\r\n::\r\n\r\n from nose_extra_tools import assert_in, issues_warnings\r\n\r\n @issues_warnings(UserWarning, DeprecationWarning)\r\n def test_issues_deprecation_warning():\r\n import warnings\r\n warnings.warn('This test passes')\r\n\r\n @issues_warnings(Warning)\r\n def test_forgot_to_issue_warning():\r\n pass\r\n\r\n def test_backported_assert_in():\r\n assert_in(10, range(5))\r\n\r\n\r\nContribute\r\n==========\r\n\r\nIf you find any bugs, or wish to propose new features `please let me know`_.\r\n\r\nIf you'd like to contribute, simply fork `the repository`_, commit your changes\r\nand send a pull request. Make sure you add yourself to `AUTHORS`_.\r\n\r\n.. _`please let me know`: https://github.com/petarmaric/nose_extra_tools/issues/new\r\n.. _`the repository`: https://github.com/petarmaric/nose_extra_tools\r\n.. _`AUTHORS`: https://github.com/petarmaric/nose_extra_tools/blob/master/AUTHORS\r\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/petarmaric/nose_extra_tools", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "nose_extra_tools", "package_url": "https://pypi.org/project/nose_extra_tools/", "platform": "any", "project_url": "https://pypi.org/project/nose_extra_tools/", "project_urls": { "Homepage": "https://github.com/petarmaric/nose_extra_tools" }, "release_url": "https://pypi.org/project/nose_extra_tools/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Extra testing goodies for nose.tools", "version": "1.0.2" }, "last_serial": 5741782, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "5beae880b21823a9c5e6b0918e7336be", "sha256": "1335918d1fc1c64c3be9b390d8b2c762c333caa7db91f4866e0ba22d610546c5" }, "downloads": -1, "filename": "nose_extra_tools-1.0.0.zip", "has_sig": false, "md5_digest": "5beae880b21823a9c5e6b0918e7336be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14032, "upload_time": "2013-08-18T23:15:22", "url": "https://files.pythonhosted.org/packages/09/4d/39ec37377f380ce583ef09c926aa3bb5969f16cb57c704583c8dffbc07e7/nose_extra_tools-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "d88d90dfeed885c952539751ef1f7b5c", "sha256": "d4b1b606f03b0ffc7bcdfca5824a11435fd56d2179c3ce98624626c6b42dc5ac" }, "downloads": -1, "filename": "nose_extra_tools-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d88d90dfeed885c952539751ef1f7b5c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4964, "upload_time": "2017-11-12T20:46:57", "url": "https://files.pythonhosted.org/packages/e8/9c/a9e24862120aa8e45d58963729a6f32d9023d59023603924811f709b2fd8/nose_extra_tools-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "947d9cf4e35798d844e7d5de9f5c85db", "sha256": "7418e3a060c4132dcac25836ca75746a338b6c6b6e9245890751ba75e16a4414" }, "downloads": -1, "filename": "nose_extra_tools-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "947d9cf4e35798d844e7d5de9f5c85db", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4394, "upload_time": "2019-08-28T10:21:11", "url": "https://files.pythonhosted.org/packages/60/8f/dd6b6b2dc99f250232fb869fcd3bd9ee5ad2d158ed53606948adc053ef5d/nose_extra_tools-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5bb960d2a172e1c84295775f1bd6c05", "sha256": "a477caab60a8a636843ab7e3809df7cb1db6b32bb4c973fec756e82839e52ae8" }, "downloads": -1, "filename": "nose_extra_tools-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e5bb960d2a172e1c84295775f1bd6c05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4946, "upload_time": "2019-08-28T10:21:08", "url": "https://files.pythonhosted.org/packages/87/e2/cb82b991f09beeab5de447e3c5f5fc498fabb05a8d606e2bf775ffa542b3/nose_extra_tools-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "947d9cf4e35798d844e7d5de9f5c85db", "sha256": "7418e3a060c4132dcac25836ca75746a338b6c6b6e9245890751ba75e16a4414" }, "downloads": -1, "filename": "nose_extra_tools-1.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "947d9cf4e35798d844e7d5de9f5c85db", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4394, "upload_time": "2019-08-28T10:21:11", "url": "https://files.pythonhosted.org/packages/60/8f/dd6b6b2dc99f250232fb869fcd3bd9ee5ad2d158ed53606948adc053ef5d/nose_extra_tools-1.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5bb960d2a172e1c84295775f1bd6c05", "sha256": "a477caab60a8a636843ab7e3809df7cb1db6b32bb4c973fec756e82839e52ae8" }, "downloads": -1, "filename": "nose_extra_tools-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e5bb960d2a172e1c84295775f1bd6c05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4946, "upload_time": "2019-08-28T10:21:08", "url": "https://files.pythonhosted.org/packages/87/e2/cb82b991f09beeab5de447e3c5f5fc498fabb05a8d606e2bf775ffa542b3/nose_extra_tools-1.0.2.tar.gz" } ] }