{ "info": { "author": "Darel Johnson", "author_email": "dareljohnson@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "checkexpect\r\n============= \r\n\r\n|version|_ \u2003 |downloads|_\r\n\r\n.. |downloads| image:: http://img.shields.io/pypi/dm/checkexpect.svg?style=flat\r\n.. _downloads: https://pypi.python.org/pypi/checkexpect\r\n\r\n.. |version| image:: http://img.shields.io/pypi/v/checkexpect.svg?style=flat\r\n.. _version: https://pypi.python.org/pypi/checkexpect\r\n\r\ncheckexpect is a simple unit testing framework for python development ``_\r\nin a python library. checkexpect is a mature, viable way to make your test-driven development drive the design of your data,\r\nand your data drive the design of your functions. It's also a simple tool that allows you to execute unit tests inline\r\nwith your code, in a systematic way.\r\n\r\nThis is a fork of the original `checkexpect `_, hosted on GitHub and\r\nlast updated in 2016.\r\n\r\nFeatures\r\n--------\r\n\r\n* [x] Support for inline unit tests. checkExpect will support tests created in another directory as well.\r\n* [x] Support for TDD and DDD development.\r\n* [x] Support for Systematic Program Design methods using HtDD and HtDF recipes.\r\n* [x] Support for color coded terminal (console) output.\r\n\r\n\r\nTODO\r\n--------\r\n* [ ] Python 3.5 support.\r\n\r\nInstallation\r\n------------\r\n\r\n1. Install checkexpect.\r\n\r\n .. code:: python\r\n\r\n pip install checkexpect\r\n\r\n\r\n2. Now you can now add a reference to the checkexpect package like so.\r\n\r\n .. code:: python\r\n\r\n #!/usr/bin/env python\r\n\r\n # import package\r\n from checkexpect.core import checkExpect\r\n\r\n\r\n3. Write some code and test it using checkexpect inline with your code.\r\n\r\n .. code:: python\r\n\r\n #!/usr/bin/env python\r\n\r\n # import packages\r\n from checkexpect.core import checkExpect\r\n import math\r\n\r\n #\u00a0Usage: checkExpect(function|object|type,\u00a0param,\u00a0expected\u00a0value,\u00a0\"a\u00a0description\u00a0of\u00a0the\u00a0test\")\r\n\r\n # define a function\r\n def square(a):\r\n return a * a # could replace return statement with (lambda a: math.pow(a, 2))\r\n # from code_statement_B below.\r\n # examples\r\n num_to_square = 12\r\n code_statement_A = 12 * 12 # used in the function body\r\n\r\n # check the algor1thm design of our square function, and unit test it at the same time\r\n checkExpect(square, 12, 144, \"Square of a number\")\r\n\r\n # Or just pass our examples\r\n checkExpect(square, num_to_square, code_statement_A, \"Square of a number\")\r\n\r\n # Or use lambda expressions\r\n code_statement_B = lambda a: math.pow(a, 2)\r\n checkExpect(square, num_to_square, code_statement_B(12), \"Square of a number\")\r\n\r\n # add up a list of numbers\r\n\r\n # examples\r\n param1 = [1,2,9]\r\n\r\n def add(args):\r\n total = 0\r\n for i in args:\r\n total = i + total\r\n return total\r\n\r\n checkExpect(add, param1, 12, \"Add two numbers\")\r\n\r\n # Create a string from an arbitrary list of strings\r\n\r\n # examples\r\n param3 = [ \"Darel\", \"Johnson\"]\r\n def string_together(los):\r\n newStr = [ str.strip() for str in los]\r\n return \" \".join(newStr)\r\n\r\n checkExpect(string_together, param3,\"Darel Johnson\")\r\n\r\n\r\n4. Execute your python script from the command line (terminal) to see the unit test results. Most tests usually fail (RED) in the beginning.\r\n\r\n5. Refactor your code and execute your script until all functions under test, turn GREEN.\r\n\r\n6. That's it! You're done.\r\n\r\nUpgrades\r\n-------------\r\n\r\n1. Upgrade checkexpect.\r\n\r\n .. code:: python\r\n\r\n pip install checkexpect -U\r\n\r\n\r\nThat command will upgrade an existing installation of checkexpect.\r\n\r\n\r\nConfiguration\r\n-------------\r\nNone - No configuration needed.\r\n\r\nSupport\r\n~~~~~~~~~~~~~~~~~~~~~~~~\r\nFor checkexpect support contact me at ``_\r\n\r\nLicense\r\n-------\r\n\r\nThis project originally started life as javascript unit test project. This project was\r\nabandoned in 2013 and was brought back to life as checkexpect by our team in\r\n2016. In the process, most of the project was refactored and brought up to speed\r\nwith modern python best practices. The work done prior to the 2013 rewrite is\r\nlicensed under MIT. Improvements since then are licensed under MIT.\r\nSee `LICENSE `_ for more details.\r\n\r\nSemVer\r\n------\r\n\r\nThis project implements `Semantic Versioning `_ .\r\n\r\nCredits\r\n-------\r\n\r\n* `Darel Johnson `_", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/dareljohnson/checkexpect-py/tarball/0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dareljohnson/checkexpect-py", "keywords": "testing,algorithm design,example,unit testing,TDD,DDD,SPD,HtDD,HtDF", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "checkexpect", "package_url": "https://pypi.org/project/checkexpect/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/checkexpect/", "project_urls": { "Download": "https://github.com/dareljohnson/checkexpect-py/tarball/0.1", "Homepage": "https://github.com/dareljohnson/checkexpect-py" }, "release_url": "https://pypi.org/project/checkexpect/1.0.19/", "requires_dist": null, "requires_python": null, "summary": "checkexpect is a simple unit testing framework for python development", "version": "1.0.19" }, "last_serial": 2494930, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "7ceacb34b2b64a1b8b7b89553512928b", "sha256": "f9c477c32c2e64de66476dbaa29253352a268499c14e4ad46687ee70e9342249" }, "downloads": -1, "filename": "checkexpect-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7ceacb34b2b64a1b8b7b89553512928b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5990, "upload_time": "2016-11-19T04:39:07", "url": "https://files.pythonhosted.org/packages/82/59/568035bcdd6740480a88859cf7c0eefa0782ace0fb7391de88f5b13527b4/checkexpect-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ab1dd6b2f3bc86bc5dc3eacb9113ab60", "sha256": "95f438d6dfad38658b1c3228d81aa1d838583c50732632ff4e7f3687969d974c" }, "downloads": -1, "filename": "checkexpect-1.0.1.zip", "has_sig": false, "md5_digest": "ab1dd6b2f3bc86bc5dc3eacb9113ab60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9955, "upload_time": "2016-11-19T04:39:09", "url": "https://files.pythonhosted.org/packages/e4/08/6e75ace86b53401e4d12ff6f41dbaca11aa001ae53be27b9663d3a182fcc/checkexpect-1.0.1.zip" } ], "1.0.10": [ { "comment_text": "", "digests": { "md5": "b20d69686ddbe6146359b732c09f7e3a", "sha256": "a7bdc42d0c32ec2e79d1757b5519350487abeb5447fc337e0cee9a288add0ec7" }, "downloads": -1, "filename": "checkexpect-1.0.10.zip", "has_sig": false, "md5_digest": "b20d69686ddbe6146359b732c09f7e3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10547, "upload_time": "2016-12-01T15:59:10", "url": "https://files.pythonhosted.org/packages/07/13/06fc47e4672c11a9c3b1aa4193bf6fac1b93ee65cbeaedf6638310f41b9b/checkexpect-1.0.10.zip" } ], "1.0.11": [ { "comment_text": "", "digests": { "md5": "d239f1f9a0e23943e7bfbf6a0fe48c8e", "sha256": "65bf0811754b65582fbedfc9336fcec512fbb6908a381f936c868e47046c5902" }, "downloads": -1, "filename": "checkexpect-1.0.11-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d239f1f9a0e23943e7bfbf6a0fe48c8e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3045, "upload_time": "2016-12-01T16:13:13", "url": "https://files.pythonhosted.org/packages/50/25/9fc0a867526ab7e35ae4adb0513f13fc816991797503135881c48fe192a8/checkexpect-1.0.11-py2.py3-none-any.whl" } ], "1.0.12": [ { "comment_text": "", "digests": { "md5": "320614f046a0fc87b039c2668ffdab5f", "sha256": "b1dc30b6eae90dc9adf44d0e5ab80528a57dd39ed1181ad4e905808920505707" }, "downloads": -1, "filename": "checkexpect-1.0.12-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "320614f046a0fc87b039c2668ffdab5f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3040, "upload_time": "2016-12-01T16:28:27", "url": "https://files.pythonhosted.org/packages/a6/b0/1133c08720c871102f5f706ab9a702f59eb2846e71140fc0a88c0737bfc2/checkexpect-1.0.12-py2.py3-none-any.whl" } ], "1.0.13": [ { "comment_text": "", "digests": { "md5": "226357f216e9caebba919d57aa4a1717", "sha256": "167d3500b22736f59977bd47eb28978043a5f094da0f211fd61e7e9a41cac5b0" }, "downloads": -1, "filename": "checkexpect-1.0.13-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "226357f216e9caebba919d57aa4a1717", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3045, "upload_time": "2016-12-01T16:32:25", "url": "https://files.pythonhosted.org/packages/d6/c7/f204b52ff6c8a5e33a9a31afebf622a4a2dad4d549da90b859e56100ad30/checkexpect-1.0.13-py2.py3-none-any.whl" } ], "1.0.14": [ { "comment_text": "", "digests": { "md5": "f091adba6b43da303d5011fa6049f110", "sha256": "f4cfa72c13e75cd83531cdba3743a1678eb46df6ca7118214adca9cf1ae6d10a" }, "downloads": -1, "filename": "checkexpect-1.0.14-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f091adba6b43da303d5011fa6049f110", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3048, "upload_time": "2016-12-01T17:22:53", "url": "https://files.pythonhosted.org/packages/19/8c/bdb4ac61f251ee73bbda4caf455f866a3bae1e21b1bf39b8e816b63b8237/checkexpect-1.0.14-py2.py3-none-any.whl" } ], "1.0.15": [ { "comment_text": "", "digests": { "md5": "01ba73228a0813bfe2d21af937eae61f", "sha256": "b4661175b1196946a0c488240eb3c15c1b623061d0a4112070f471f2bb178e6d" }, "downloads": -1, "filename": "checkexpect-1.0.15-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "01ba73228a0813bfe2d21af937eae61f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3044, "upload_time": "2016-12-01T17:27:25", "url": "https://files.pythonhosted.org/packages/50/f2/85dc4b638a9b4755bb5d1fac9146fa76744d56865b96978655d3c219d6d9/checkexpect-1.0.15-py2.py3-none-any.whl" } ], "1.0.16": [ { "comment_text": "", "digests": { "md5": "ae9a9523d6d38397e52e2485ca8af9fe", "sha256": "7b4ccc3b5a99f8f2a20b951f8776d8d7aba890bfd30bceca1324a4f4b2fdac1a" }, "downloads": -1, "filename": "checkexpect-1.0.16-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ae9a9523d6d38397e52e2485ca8af9fe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3043, "upload_time": "2016-12-01T17:33:19", "url": "https://files.pythonhosted.org/packages/74/de/e053a4e3c07840f683fe61b7a1a093201b332f02c21eabefb6b6814de9df/checkexpect-1.0.16-py2.py3-none-any.whl" } ], "1.0.17": [ { "comment_text": "", "digests": { "md5": "5816999ffbc4a8da1edc09f3fdf92a06", "sha256": "77e654339f9e2fdbaa441682cecaa111e1b63e27f45e50d96ca4e26cfb3665bc" }, "downloads": -1, "filename": "checkexpect-1.0.17-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5816999ffbc4a8da1edc09f3fdf92a06", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3038, "upload_time": "2016-12-01T17:55:17", "url": "https://files.pythonhosted.org/packages/f0/79/a9b5fda1307bd68b0ba7725c4fb47ded3683e15e03fb70d1a7113d152bca/checkexpect-1.0.17-py2.py3-none-any.whl" } ], "1.0.18": [ { "comment_text": "", "digests": { "md5": "b2171651be63f500555963efbe1925b8", "sha256": "b1c19fe13e6663d79ef38f74d6813d66dc65db35a013da1908985c54d65867d5" }, "downloads": -1, "filename": "checkexpect-1.0.18-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b2171651be63f500555963efbe1925b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3037, "upload_time": "2016-12-01T18:00:46", "url": "https://files.pythonhosted.org/packages/49/a6/aeb57a5b9246154ba2d891b9c892dc6f7aa8757fece399efba9e39ee0fbf/checkexpect-1.0.18-py2.py3-none-any.whl" } ], "1.0.19": [ { "comment_text": "", "digests": { "md5": "1839e22ad589aa3346111706f27ec9d8", "sha256": "657d7be4edaa3c71962853d5e0575aa231f57fbc721a5469f2551f4ae4b87026" }, "downloads": -1, "filename": "checkexpect-1.0.19-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1839e22ad589aa3346111706f27ec9d8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3100, "upload_time": "2016-12-02T00:56:02", "url": "https://files.pythonhosted.org/packages/f7/53/894710a4f41896d30aa749c71f33406846fa20e58632f9eabdb9c2b0ae51/checkexpect-1.0.19-py2.py3-none-any.whl" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "3f430466bbd6cac72162ba9af0f2a790", "sha256": "19d35b8a312f304a752b761e85feb2b7f15993e488d9e62f95936017ce383dc7" }, "downloads": -1, "filename": "checkexpect-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3f430466bbd6cac72162ba9af0f2a790", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6050, "upload_time": "2016-11-19T06:00:38", "url": "https://files.pythonhosted.org/packages/55/e7/2e11be510ddc01d61eede4df522998ef2bbb509498686e1c165073140463/checkexpect-1.0.2-py2.py3-none-any.whl" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "0249273f2be9ba52f560973f1399ee65", "sha256": "f00922541d864aeec6737ed5bb189c6cd76f08af9ff2ff46db02b345dbd84c97" }, "downloads": -1, "filename": "checkexpect-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0249273f2be9ba52f560973f1399ee65", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6048, "upload_time": "2016-11-19T06:10:05", "url": "https://files.pythonhosted.org/packages/b4/e8/d1d7b66140b87d2506afeff046b09ca864109816528563172d8609db132f/checkexpect-1.0.3-py2.py3-none-any.whl" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "caee0b835a19dab8d97c83eef23ef57d", "sha256": "0fc41506bbf0609a34de04995228761587169cb5d5b95e3ecf17cbc917a808af" }, "downloads": -1, "filename": "checkexpect-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "caee0b835a19dab8d97c83eef23ef57d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6135, "upload_time": "2016-11-19T06:14:43", "url": "https://files.pythonhosted.org/packages/c7/a0/54a972b81cd92015cffd7e5d117e5996f6b588c297cb02760489e89e4f31/checkexpect-1.0.4-py2.py3-none-any.whl" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "42cd178bef3b207d3a23d586c1a17560", "sha256": "097955c46a9926cb3574e1935c45211d40a678a8246e91f2597b80fb4b4df06b" }, "downloads": -1, "filename": "checkexpect-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "42cd178bef3b207d3a23d586c1a17560", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6136, "upload_time": "2016-11-19T18:44:30", "url": "https://files.pythonhosted.org/packages/6c/05/cff2a8eb4bf1aa4a6827bffb32c2d956b75b672b42ada8588a277b3e9bd1/checkexpect-1.0.5-py2.py3-none-any.whl" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "70279051c7382d26d36ede9515f333e6", "sha256": "9cc713c6bf87687a39dc6abf8c912b8d931512749c458cde3b27e17b719e11df" }, "downloads": -1, "filename": "checkexpect-1.0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "70279051c7382d26d36ede9515f333e6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6267, "upload_time": "2016-11-19T20:58:22", "url": "https://files.pythonhosted.org/packages/de/a3/398a6b975caa193ea2a9642c6dcb8d4c8e1f47eb178c53e253e1b499e4d5/checkexpect-1.0.7-py2.py3-none-any.whl" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "df3f3a71d197ca2a073ec3c899520f96", "sha256": "2a7769913d1f5b23c48f56d93d9040434d7b0e078a8f9bfbe86b3ddddcab6526" }, "downloads": -1, "filename": "checkexpect-1.0.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "df3f3a71d197ca2a073ec3c899520f96", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6272, "upload_time": "2016-11-19T21:06:22", "url": "https://files.pythonhosted.org/packages/f3/b3/eb4111332b073883b1455267281de791848ec68aa3b73b077d6ca19f1272/checkexpect-1.0.8-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1839e22ad589aa3346111706f27ec9d8", "sha256": "657d7be4edaa3c71962853d5e0575aa231f57fbc721a5469f2551f4ae4b87026" }, "downloads": -1, "filename": "checkexpect-1.0.19-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1839e22ad589aa3346111706f27ec9d8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3100, "upload_time": "2016-12-02T00:56:02", "url": "https://files.pythonhosted.org/packages/f7/53/894710a4f41896d30aa749c71f33406846fa20e58632f9eabdb9c2b0ae51/checkexpect-1.0.19-py2.py3-none-any.whl" } ] }