{ "info": { "author": "Ben Firshman", "author_email": "ben@firshman.co.uk", "bugtrack_url": null, "classifiers": [], "description": "pspec\n=====\n\n[![Build Status](https://travis-ci.org/bfirsh/pspec.png?branch=master)](https://travis-ci.org/bfirsh/pspec)\n\nPython testing for humans, built with [Attest](http://packages.python.org/Attest/).\n\nTests shouldn't just be for computers to check your code runs correctly. They can also be used by humans to understand what your code does.\n\npspec tests are designed to be parsed by humans. They look a bit like this:\n\n```python\nfrom pspec import describe, assert_raises\nimport random\n\nwith describe('random'):\n with describe('shuffle'):\n def it_does_not_lose_any_elements():\n seq = range(10)\n random.shuffle(seq)\n seq.sort()\n assert seq == range(10)\n\n def it_raises_an_exception_for_an_immutable_sequence():\n with assert_raises(TypeError):\n random.shuffle((1, 2, 3))\n\n with describe('choice'):\n def it_picks_an_element_that_is_in_the_sequence():\n seq = range(10)\n assert random.choice(seq) in seq\n```\n\n(Compare with a [similar example for the built-in unittest module](http://docs.python.org/library/unittest.html#basic-example).)\n\nThey are run with the `pspec` command:\n\n $ pspec random_spec\n\n\n\nDevelopment install\n-------------------\n\n $ pip install -r requirements.txt\n $ python setup.py develop\n\nTest suite\n----------\n\n $ pspec spec\n\nGoals\n-----\n\n**Note:** pspec is still in its infancy. Don't expect it to be useful yet. \n\nHere's some stuff I want it to do:\n\n - Beautiful test reports with coloured string diffs. (Similar to [Mocha's](http://visionmedia.github.com/mocha/#string diffs))\n - Contexts, before/after hooks, etc.\n\nIt's going to be simple, Pythonic and use minimal magic.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bfirsh/pspec", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pspec", "package_url": "https://pypi.org/project/pspec/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pspec/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bfirsh/pspec" }, "release_url": "https://pypi.org/project/pspec/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Python testing for humans", "version": "0.0.2" }, "last_serial": 779202, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "e86630471bf9c808aa60702e85f77275", "sha256": "4aec0a8c9e66b59776f0f89bdead595cb82db08f8c207b047aa2d9ca47181089" }, "downloads": -1, "filename": "pspec-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e86630471bf9c808aa60702e85f77275", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5117, "upload_time": "2013-05-29T16:37:30", "url": "https://files.pythonhosted.org/packages/0e/cc/b7b50eff68e6ef88c1ed57b3bc10b8914a415a0cf985ec6a47a0406918e2/pspec-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "6acf79ecb965f0d41eb0fa2138026d8a", "sha256": "69cd2cfdd465a88f1671938470865892fb6819e9b5263db7a7b68d554690f8a6" }, "downloads": -1, "filename": "pspec-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6acf79ecb965f0d41eb0fa2138026d8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5221, "upload_time": "2013-06-25T10:16:47", "url": "https://files.pythonhosted.org/packages/2f/78/72170f164277726d533fcd76e699ff6c4254e023d3de4e6ae0d4e7f3a960/pspec-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6acf79ecb965f0d41eb0fa2138026d8a", "sha256": "69cd2cfdd465a88f1671938470865892fb6819e9b5263db7a7b68d554690f8a6" }, "downloads": -1, "filename": "pspec-0.0.2.tar.gz", "has_sig": false, "md5_digest": "6acf79ecb965f0d41eb0fa2138026d8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5221, "upload_time": "2013-06-25T10:16:47", "url": "https://files.pythonhosted.org/packages/2f/78/72170f164277726d533fcd76e699ff6c4254e023d3de4e6ae0d4e7f3a960/pspec-0.0.2.tar.gz" } ] }