{ "info": { "author": "Patrik Beyls", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "********\nunisquid\n********\n\nYet another unittest extension for python.\n\nLive Server Test Case \n---------------------\n\nThe LiveServerTestCase extension does basically the same as\nunittest.TestCase but also launches a live http server in a \nseparate thread.\n\nA comma-separated list of ports or a range of ports can be specified\nin the hope the live server can find one that is free to use for the\nWSGI server. The range may be of the form: '8000-8010,8080,9020-9300'\nand will be read from the 'LIVE_TEST_SERVER_ADDRESS' environment variable.\n\nThe function create_app() is used to return the handler used by the WSGI server.\n\nExample\n-------\n\n.. code-block:: python\n\n import unisquid\n import urllib\n import wsgiref\n\n\n class TestLiveServer(unisquid.LiveServerTestCase):\n def create_app(self):\n return wsgiref.simple_server.demo_app\n\n def test_server_process_listening(self):\n response = urllib.urlopen(self.live_server_url)\n self.assertTrue(b'Hello world!' in response.read())\n self.assertEqual(response.code, 200)", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/beylsp/unisquid/tarball/1.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/beylsp/unisquid", "keywords": "testing", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "unisquid", "package_url": "https://pypi.org/project/unisquid/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/unisquid/", "project_urls": { "Download": "https://github.com/beylsp/unisquid/tarball/1.0.1", "Homepage": "https://github.com/beylsp/unisquid" }, "release_url": "https://pypi.org/project/unisquid/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Yet another unittest extension for python.", "version": "1.0.1" }, "last_serial": 2256202, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "54bef3b3b2d14ae8a3f3a05e3a285184", "sha256": "0daa12eff08821eb68c73f696e03c28e49e6c292af47d26f7a0a8c1e1b6a726d" }, "downloads": -1, "filename": "unisquid-1.0.1.tar.gz", "has_sig": false, "md5_digest": "54bef3b3b2d14ae8a3f3a05e3a285184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5191, "upload_time": "2016-08-01T20:04:23", "url": "https://files.pythonhosted.org/packages/a3/35/49c6675dfa9c9b2f9f6baba845f8b5e8e8beb3843ae319ae7bebdb66737c/unisquid-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54bef3b3b2d14ae8a3f3a05e3a285184", "sha256": "0daa12eff08821eb68c73f696e03c28e49e6c292af47d26f7a0a8c1e1b6a726d" }, "downloads": -1, "filename": "unisquid-1.0.1.tar.gz", "has_sig": false, "md5_digest": "54bef3b3b2d14ae8a3f3a05e3a285184", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5191, "upload_time": "2016-08-01T20:04:23", "url": "https://files.pythonhosted.org/packages/a3/35/49c6675dfa9c9b2f9f6baba845f8b5e8e8beb3843ae319ae7bebdb66737c/unisquid-1.0.1.tar.gz" } ] }