{ "info": { "author": "Alice1017", "author_email": "takemehighermore@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Testing :: Unit" ], "description": "streamtest - unit test the output of standard stream\n====================================================\n\n|forthebadge|\n\n|Build Status| |Coverage Status|\n\nOverview\n--------\n\nThe **streamtest** provides the enhanced ``unittest.TestCase`` for\ntesting the **output of standard stream** (``stdout``, ``stderr``).\n\nUsage\n-----\n\n.. code:: python\n\n from stramtest import CatchStreamTestCase\n\n class StreamTestCase(CatchStreamTestCase):\n\n def test_stdout(self):\n\n with self.catch_stream(\"stdout\") as stream:\n print \"hello world\"\n\n self.assertEqual(stream, \"hello world\\n\")\n\n def test_stderr(self):\n\n with self.catch_stream(\"stderr\") as stream:\n sys.stderr.write(\"Error!\")\n\n self.assertEqual(stream, \"Error!\")\n\nInstallation\n------------\n\n::\n\n $ pip install streamtest\n\n\nor\n\n::\n\n $ git clone git@github.com:alice1017/streamtest.git\n $ cd streamtest\n $ python setup.py build install\n\n\n.. |forthebadge| image:: http://forthebadge.com/images/badges/made-with-python.svg\n :target: http://forthebadge.com\n.. |Build Status| image:: https://travis-ci.org/alice1017/streamtest.svg?branch=master\n :target: https://travis-ci.org/alice1017/streamtest\n.. |Coverage Status| image:: https://coveralls.io/repos/github/alice1017/streamtest/badge.svg\n :target: https://coveralls.io/github/alice1017/streamtest", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alice1017/streamtest", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "streamtest", "package_url": "https://pypi.org/project/streamtest/", "platform": "", "project_url": "https://pypi.org/project/streamtest/", "project_urls": { "Homepage": "https://github.com/alice1017/streamtest" }, "release_url": "https://pypi.org/project/streamtest/1.0b1/", "requires_dist": null, "requires_python": "", "summary": "Python unittest.TestCase for testing the output of standard stream(stdout, stderr)", "version": "1.0b1" }, "last_serial": 3853017, "releases": { "1.0b1": [ { "comment_text": "", "digests": { "md5": "a85c304d6960bd005d7177ab85e1c557", "sha256": "bf9c0ce5d9bd148a831f383681e0edcdd662d818d3cc859d67c81616d8758fcf" }, "downloads": -1, "filename": "streamtest-1.0b1-py2.7.egg", "has_sig": false, "md5_digest": "a85c304d6960bd005d7177ab85e1c557", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5032, "upload_time": "2018-05-11T05:53:07", "url": "https://files.pythonhosted.org/packages/e1/7e/97943a6b6588b335d5f3ddec929b2510437290011421b8331fac1920eb58/streamtest-1.0b1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "98f854f3091eee85739744dac9a7c9e1", "sha256": "a1d511ff1303075bfd3557a2990769abc44b2cb7ede9f7391d1a1c64fb5a93e4" }, "downloads": -1, "filename": "streamtest-1.0b1.tar.gz", "has_sig": false, "md5_digest": "98f854f3091eee85739744dac9a7c9e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2484, "upload_time": "2018-05-11T05:53:09", "url": "https://files.pythonhosted.org/packages/4d/da/461330bd5bf4503f3ecfd9f830bb87252855ce9aa4728232dd8c8c6dc8da/streamtest-1.0b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a85c304d6960bd005d7177ab85e1c557", "sha256": "bf9c0ce5d9bd148a831f383681e0edcdd662d818d3cc859d67c81616d8758fcf" }, "downloads": -1, "filename": "streamtest-1.0b1-py2.7.egg", "has_sig": false, "md5_digest": "a85c304d6960bd005d7177ab85e1c557", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 5032, "upload_time": "2018-05-11T05:53:07", "url": "https://files.pythonhosted.org/packages/e1/7e/97943a6b6588b335d5f3ddec929b2510437290011421b8331fac1920eb58/streamtest-1.0b1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "98f854f3091eee85739744dac9a7c9e1", "sha256": "a1d511ff1303075bfd3557a2990769abc44b2cb7ede9f7391d1a1c64fb5a93e4" }, "downloads": -1, "filename": "streamtest-1.0b1.tar.gz", "has_sig": false, "md5_digest": "98f854f3091eee85739744dac9a7c9e1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2484, "upload_time": "2018-05-11T05:53:09", "url": "https://files.pythonhosted.org/packages/4d/da/461330bd5bf4503f3ecfd9f830bb87252855ce9aa4728232dd8c8c6dc8da/streamtest-1.0b1.tar.gz" } ] }