{ "info": { "author": "Nathan Reynolds", "author_email": "email@nreynolds.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development" ], "description": "=======================\nEsc: Expect Status Code\n=======================\n\nChecks your HTTP response has the expected status, throws an error if not:\n\n.. code:: python\n\n >>> response = esc.expect(404, requests.get(\"http://example.com\"))\n esc.UnexpectedStatusCode: Expected one of HTTP 404, but http://example.com/ returned 200 with content: \n\n\nWhy?\n====\n\n1. Status code checks are ever so slightly easier.\n2. Unit test failure messages are far more helpful.\n\n\nSupported libraries\n===================\n\nCurrently supports the following:\n\n- requests", "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/nathforge/esc", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "esc", "package_url": "https://pypi.org/project/esc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/esc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nathforge/esc" }, "release_url": "https://pypi.org/project/esc/0.1/", "requires_dist": null, "requires_python": null, "summary": "Check HTTP response status", "version": "0.1" }, "last_serial": 2118067, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ec223912467b8784bd180d5d7c833ed8", "sha256": "761c5925908a4494c91c668ea3d2c8856513e07227536066a5c17c5a1e7c52f7" }, "downloads": -1, "filename": "esc-0.1.tar.gz", "has_sig": false, "md5_digest": "ec223912467b8784bd180d5d7c833ed8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2205, "upload_time": "2016-05-16T13:33:31", "url": "https://files.pythonhosted.org/packages/68/23/08b611051c1b5abdccd3312d7c949cffba7016e2e8b67f8bd45531ad4af0/esc-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ec223912467b8784bd180d5d7c833ed8", "sha256": "761c5925908a4494c91c668ea3d2c8856513e07227536066a5c17c5a1e7c52f7" }, "downloads": -1, "filename": "esc-0.1.tar.gz", "has_sig": false, "md5_digest": "ec223912467b8784bd180d5d7c833ed8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2205, "upload_time": "2016-05-16T13:33:31", "url": "https://files.pythonhosted.org/packages/68/23/08b611051c1b5abdccd3312d7c949cffba7016e2e8b67f8bd45531ad4af0/esc-0.1.tar.gz" } ] }