{
"info": {
"author": "Steven Loria",
"author_email": "sloria1@gmail.com",
"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",
"Programming Language :: Python :: 3.6",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server"
],
"description": "============\nwebtest-plus\n============\n\n.. image:: https://badge.fury.io/py/webtest-plus.png\n :target: http://badge.fury.io/py/webtest-plus\n\n.. image:: https://travis-ci.org/sloria/webtest-plus.png?branch=master\n :target: https://travis-ci.org/sloria/webtest-plus\n\nAn extension of `WebTest `_ with useful extras, including `requests `_-style authentication.\n\nInstall\n-------\n.. code-block:: bash\n\n $ pip install -U webtest-plus\n\nUsage\n-----\n\n.. code-block:: python\n\n import unittest\n from myapp import app\n from webtest_plus import TestApp\n\n class TestMyApp(unittest.TestCase):\n\n def setUp(self):\n self.app = TestApp(app)\n\n def test_protected_endpoint(self):\n response = self.app.get(\"/secret/\", expect_errors=True)\n assert response.status_code == 401\n # Requests-style authentication\n response = self.app.get(\"/secret/\", auth=(\"admin\", \"passw0rd\"))\n assert response.status_code == 200\n\n def test_more_secrets(self):\n # Another way to authenticate\n self.app.authenticate(username=\"admin\", password=\"passw0rd\")\n assert self.app.get(\"/secret/\").status_code == 200\n self.app.deauthenticate()\n assert self.app.get(\"/secret/\", expect_errors=True).status_code == 401\n\n def test_posting_json(self):\n # Testing json requests and responses\n response = self.app.post_json(\"/postsecret/\", {\"secret\": \"myprecious\"},\n auth=(\"admin\", \"passw0rd\"))\n assert response.request.content_type == \"application/json\"\n\n def test_clicking(self):\n response = self.app.get(\"/\")\n response = response.click(\"Protected link\", auth=(\"admin\", \"passw0rd\"))\n assert response.status_code == 200\n\n def test_token_auth(self):\n response = self.app.get('/secret-requires-token/', expect_errors=True)\n assert response.status_code == 401\n\n # Authenticate with JWT\n response = self.app.get('/secret-requires-token',\n auth='yourlongtokenhere', auth_type='jwt')\n assert response.status_code == 200\n\n\n\nFeatures\n--------\n\n* Basic HTTP authentication\n* `JSON Web Token `_ authentication\n* Auto-follow redirects\n* Framework-agnostic\n\nRequirements\n------------\n\n- Python >= 2.6 or >= 3.3\n\nLicense\n-------\n\nMIT licensed. See the bundled `LICENSE `_ file for more details.\n\n\nChangelog\n---------\n\n1.0.0 (2017-05-17)\n++++++++++++++++++\n\n* Fix handling of utf-encoded values when using ``auth`` (#3). Thanks @biern for the catch and patch.\n* Drop support for Python 2.6.\n* Test against Python 3.6.\n\n0.3.3 (2015-03-17)\n++++++++++++++++++\n\n* Implement ``TestApp.head``.\n\n0.3.2 (2014-06-04)\n++++++++++++++++++\n\n* Bug fix that caused an ``UnboundLocalError``.\n\n0.3.1 (2014-05-31)\n++++++++++++++++++\n\n* Fix string encoding bug on Python 2.\n\n0.3.0 (2014-05-31)\n++++++++++++++++++\n\n* Add support for JSON web token authentication.\n\n0.2.1 (2013-11-24)\n++++++++++++++++++\n\n* Add authentication to ``TestResponse.click`` and ``TestResponse.clickbutton``.\n\n0.2.0 (2013-10-15)\n++++++++++++++++++\n\n* Add support for JSON methods (e.g. ``app.post_json``, etc.)\n\n0.1.0 (2013-10-06)\n++++++++++++++++++\n\n* First release.\n* HTTP Basic Authentication working.\n",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/sloria/webtest-plus",
"keywords": "wsgi test unit tests web testing http",
"license": "Copyright 2017 Steven Loria\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
"maintainer": "",
"maintainer_email": "",
"name": "webtest-plus",
"package_url": "https://pypi.org/project/webtest-plus/",
"platform": "",
"project_url": "https://pypi.org/project/webtest-plus/",
"project_urls": {
"Homepage": "https://github.com/sloria/webtest-plus"
},
"release_url": "https://pypi.org/project/webtest-plus/1.0.0/",
"requires_dist": null,
"requires_python": "",
"summary": "An extension of WebTest with useful extras, including requests-style authentication.",
"version": "1.0.0"
},
"last_serial": 2868510,
"releases": {
"0.1.0": [
{
"comment_text": "",
"digests": {
"md5": "d45d5142901bf4cc0b81705c11f1a8ab",
"sha256": "c8267b4298c2047b345fff079a176a40f91c5702a1931c3ea14359833bb11540"
},
"downloads": -1,
"filename": "webtest_plus-0.1.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "d45d5142901bf4cc0b81705c11f1a8ab",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 6727,
"upload_time": "2013-10-06T14:37:14",
"url": "https://files.pythonhosted.org/packages/30/6e/c1c1e44e798ab08ed098eee9bc585728bfd747576bf4ed57df2810dce61e/webtest_plus-0.1.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "2e450389d6ff268997dd65879d851c16",
"sha256": "2ea24012832433fd6f979bcd268063891eb135cb40cdf0c8aa8dfc98fa6ed20f"
},
"downloads": -1,
"filename": "webtest-plus-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "2e450389d6ff268997dd65879d851c16",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5293,
"upload_time": "2013-10-06T14:37:11",
"url": "https://files.pythonhosted.org/packages/5e/6b/816dbc99a5331b31dfd145cb26aa38dced38664d118f944cf9229f45a3b5/webtest-plus-0.1.0.tar.gz"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "45ba82040d23e14f497a0c6f55e97ad2",
"sha256": "915ba4cee82e2d2b4f77b0305cb41be9423007a3c8d71ef99b98353d4417c1ce"
},
"downloads": -1,
"filename": "webtest_plus-0.2.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "45ba82040d23e14f497a0c6f55e97ad2",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 7240,
"upload_time": "2013-10-15T19:48:28",
"url": "https://files.pythonhosted.org/packages/43/5e/15b0443ba5ad0a4be064ad7b36d2d4baedc2f57824368e2e8ecdbdf4d80a/webtest_plus-0.2.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "29e49f6bc85e0a1d69d725a4a20268f6",
"sha256": "db9a9884192afd2c549f66a233924ea16d261c9c80f803e13f5327bfcb7e56e0"
},
"downloads": -1,
"filename": "webtest-plus-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "29e49f6bc85e0a1d69d725a4a20268f6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5681,
"upload_time": "2013-10-15T19:48:25",
"url": "https://files.pythonhosted.org/packages/27/43/7e4cc6334ccaa7b3f60047379b7690d9220ab03163d897a8da8876e074ea/webtest-plus-0.2.0.tar.gz"
}
],
"0.2.1": [
{
"comment_text": "",
"digests": {
"md5": "6067d2099660c1e55f5bf4cad6147146",
"sha256": "270b54cab3e9a8c128963749ef8446b29aa0f15ef60c83d4865534aab70944c1"
},
"downloads": -1,
"filename": "webtest_plus-0.2.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6067d2099660c1e55f5bf4cad6147146",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 8713,
"upload_time": "2013-11-24T18:04:52",
"url": "https://files.pythonhosted.org/packages/b9/c5/a0ce6bde3017cd5617d10f1070bbeb180986b9cd99a792b758cb56c06893/webtest_plus-0.2.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "ce5db3a7a6602600a36d3ee41ecd4d27",
"sha256": "7ff137be7b7fba92d7e1bb1568666de1a05defe11dc09c0559b1600c555c0659"
},
"downloads": -1,
"filename": "webtest-plus-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "ce5db3a7a6602600a36d3ee41ecd4d27",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6792,
"upload_time": "2013-11-24T18:04:50",
"url": "https://files.pythonhosted.org/packages/3a/f3/d9a478811a5b6dfb02768946695916b0376e110619286cf2ef7635f00b86/webtest-plus-0.2.1.tar.gz"
}
],
"0.3.0": [
{
"comment_text": "",
"digests": {
"md5": "993ebd3afaf2762aea693f14dce16c09",
"sha256": "a40f4b039556b8f5d0d0d0b3408d4c06885949942abdcfe43dfcc01bb2e8ea67"
},
"downloads": -1,
"filename": "webtest_plus-0.3.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "993ebd3afaf2762aea693f14dce16c09",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 9298,
"upload_time": "2014-05-31T21:56:40",
"url": "https://files.pythonhosted.org/packages/d6/66/cdffe04b12cf46c035f1d9c4e8fb3ad65b31b40426d5f4fed9d1e9aea347/webtest_plus-0.3.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "0744d47a2bfe3c15805726ed2e9f5861",
"sha256": "95fa3776fbe7103d58285105325817034b7b5ed5d3d68efe8e2d3e3b596d00b1"
},
"downloads": -1,
"filename": "webtest-plus-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "0744d47a2bfe3c15805726ed2e9f5861",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8322,
"upload_time": "2014-05-31T21:56:37",
"url": "https://files.pythonhosted.org/packages/c5/7f/a01a55c9757c3b5d6a4bd9447c04a62c91c0232113918619f083d33abc9d/webtest-plus-0.3.0.tar.gz"
}
],
"0.3.1": [
{
"comment_text": "",
"digests": {
"md5": "fefdf12730706bd1d5b72ca035d3f1da",
"sha256": "f751a9dbfb98d686489b2cb08f41fb8c28c1f2d4bad7f1cb9e23112ab0e897f9"
},
"downloads": -1,
"filename": "webtest_plus-0.3.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "fefdf12730706bd1d5b72ca035d3f1da",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 9349,
"upload_time": "2014-05-31T22:23:59",
"url": "https://files.pythonhosted.org/packages/34/52/599eda64dd7e416192a34217aeeca6ef273085add300dcb4d2d4462d85e9/webtest_plus-0.3.1-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "14d5d889abbf1f771d67a5bfc12deaa9",
"sha256": "3af1115decd012323af71a6c33e03df75de2f889e51f85f429e9772a003d205d"
},
"downloads": -1,
"filename": "webtest-plus-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "14d5d889abbf1f771d67a5bfc12deaa9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8376,
"upload_time": "2014-05-31T22:23:56",
"url": "https://files.pythonhosted.org/packages/9e/0b/38ebab025a72451032caff266e79e538a4e629491234180af7cfe5881258/webtest-plus-0.3.1.tar.gz"
}
],
"0.3.3": [
{
"comment_text": "",
"digests": {
"md5": "5981cb254131f68f81311ad72902d3cd",
"sha256": "9f0dd95f68f04bf46b71d81a20e643183ae4cf5399fc390f57f7eeec9e628f69"
},
"downloads": -1,
"filename": "webtest_plus-0.3.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "5981cb254131f68f81311ad72902d3cd",
"packagetype": "bdist_wheel",
"python_version": "2.7",
"requires_python": null,
"size": 9558,
"upload_time": "2015-03-18T00:50:40",
"url": "https://files.pythonhosted.org/packages/87/df/95de03d479d24115c3f9a9516f4a28753fff257b23ef539c09f65800325b/webtest_plus-0.3.3-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "aa2ed1be284c624fb1ad2fa62175e003",
"sha256": "03ee108ed3f513baa793526a1d2f6f74af34e65dd4344da17c0f35b429519955"
},
"downloads": -1,
"filename": "webtest-plus-0.3.3.tar.gz",
"has_sig": false,
"md5_digest": "aa2ed1be284c624fb1ad2fa62175e003",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8641,
"upload_time": "2015-03-18T00:50:37",
"url": "https://files.pythonhosted.org/packages/3c/f6/a2b6bef2957c4fa9ee14ee6768db4e1e347fd7fec4839a69a32c8523e9a9/webtest-plus-0.3.3.tar.gz"
}
],
"1.0.0": [
{
"comment_text": "",
"digests": {
"md5": "fdc8bf81d810e7471415f5af95001905",
"sha256": "70c1eb5092863d2d769984c5aee56d577817a189bee149e622e4ecb68caf3270"
},
"downloads": -1,
"filename": "webtest_plus-1.0.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "fdc8bf81d810e7471415f5af95001905",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 9772,
"upload_time": "2017-05-12T02:31:02",
"url": "https://files.pythonhosted.org/packages/7d/77/7c2bd17a367266f2a74f844917107fd2e5d876b219c96557df4ee4dde511/webtest_plus-1.0.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "27337684ba5b79e644bf36c70faf5575",
"sha256": "2bebad7ac36c895daffa09def88d27c0cd9683e142a84a518b82b264a3a06872"
},
"downloads": -1,
"filename": "webtest-plus-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "27337684ba5b79e644bf36c70faf5575",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8903,
"upload_time": "2017-05-12T02:31:01",
"url": "https://files.pythonhosted.org/packages/d3/9f/a05220d4c2dca02c1a0db58246aa2639f22665800b8366bd0306069e26a4/webtest-plus-1.0.0.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "fdc8bf81d810e7471415f5af95001905",
"sha256": "70c1eb5092863d2d769984c5aee56d577817a189bee149e622e4ecb68caf3270"
},
"downloads": -1,
"filename": "webtest_plus-1.0.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "fdc8bf81d810e7471415f5af95001905",
"packagetype": "bdist_wheel",
"python_version": "3.5",
"requires_python": null,
"size": 9772,
"upload_time": "2017-05-12T02:31:02",
"url": "https://files.pythonhosted.org/packages/7d/77/7c2bd17a367266f2a74f844917107fd2e5d876b219c96557df4ee4dde511/webtest_plus-1.0.0-py2.py3-none-any.whl"
},
{
"comment_text": "",
"digests": {
"md5": "27337684ba5b79e644bf36c70faf5575",
"sha256": "2bebad7ac36c895daffa09def88d27c0cd9683e142a84a518b82b264a3a06872"
},
"downloads": -1,
"filename": "webtest-plus-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "27337684ba5b79e644bf36c70faf5575",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8903,
"upload_time": "2017-05-12T02:31:01",
"url": "https://files.pythonhosted.org/packages/d3/9f/a05220d4c2dca02c1a0db58246aa2639f22665800b8366bd0306069e26a4/webtest-plus-1.0.0.tar.gz"
}
]
}