{ "info": { "author": "Xurui Yan", "author_email": "yxr1993@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Testing" ], "description": "testfunc\n========\n\nintroduction\n------------\n\na simple parametrized test tool for function\n\nexample\n-------\n\n.. code:: python\n\n from testfunc import test\n\n def foo(a=0, b=0):\n return a+b\n\n # test_data is a list of test cases\n # a test case is the form of (args, result) or (args, kw, result)\n # if args is a tuple it will be unpacked, if this is not desired, pass `unpack=False` to `test`\n test_data = [\n (\n (1, 2), 3\n ),\n (\n (1, 1), 3\n ),\n (\n (1,), 1\n ),\n (\n (), 0\n ),\n (\n 1, {'b':2}, 3\n )\n ]\n\n test(foo, test_data)\n\n.. figure:: screenshot.png\n :alt: screenshot\n\n screenshot\n\ncheck `testfunc.py `__ for more examples.\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/yanxurui/testfunc", "keywords": "test", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "testfunc", "package_url": "https://pypi.org/project/testfunc/", "platform": "", "project_url": "https://pypi.org/project/testfunc/", "project_urls": { "Homepage": "https://github.com/yanxurui/testfunc" }, "release_url": "https://pypi.org/project/testfunc/0.1/", "requires_dist": null, "requires_python": "", "summary": "A sample tool for testing functions", "version": "0.1" }, "last_serial": 3396944, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4a04da0e52c760d2d32e63bb2d7c675b", "sha256": "afaae896a5daed24cd8192b9cdcfb1c6881207574049c7b657f3d375f8565ca9" }, "downloads": -1, "filename": "testfunc-0.1.tar.gz", "has_sig": false, "md5_digest": "4a04da0e52c760d2d32e63bb2d7c675b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3645, "upload_time": "2017-12-07T07:42:36", "url": "https://files.pythonhosted.org/packages/d7/58/fd081a36f24bc463597daa3dcfe121a1983d9dcad5b75d30addc67b81d7e/testfunc-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a04da0e52c760d2d32e63bb2d7c675b", "sha256": "afaae896a5daed24cd8192b9cdcfb1c6881207574049c7b657f3d375f8565ca9" }, "downloads": -1, "filename": "testfunc-0.1.tar.gz", "has_sig": false, "md5_digest": "4a04da0e52c760d2d32e63bb2d7c675b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3645, "upload_time": "2017-12-07T07:42:36", "url": "https://files.pythonhosted.org/packages/d7/58/fd081a36f24bc463597daa3dcfe121a1983d9dcad5b75d30addc67b81d7e/testfunc-0.1.tar.gz" } ] }