{ "info": { "author": "Ali-Akber Saifee", "author_email": "ali@indydevs.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: MIT License", "Operating System :: MacOS", "Operating System :: OS Independent", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing" ], "description": ".. |pypi| image:: https://pypip.in/v/mock_matchers/badge.png\n :target: https://crate.io/packages/mock_matchers/\n.. |license| image:: https://pypip.in/license/mock_matchers/badge.png\n :target: https://pypi.python.org/pypi/mock_matchers/\n.. _PyHamcrest: https://pythonhosted.org/PyHamcrest/ \n.. _PyHamcrest Matchers: https://pythonhosted.org/PyHamcrest/library.html\n.. _mock: https://docs.python.org/3/library/unittest.mock.html\n\n*************\nmock_matchers\n*************\n|pypi| |license|\n\nmock.matchers simply makes `PyHamcrest`_ matchers usable with the `mock`_ assertion calls.\n\n\nExamples::\n\n from mock import Mock \n import mock_matchers\n\n m = Mock()\n m.foo(1,2,3)\n m.bar([1,2,3])\n\n m.foo.assert_called_with(\n mock_matchers.instance_of(int),\n mock_matchers.instance_of(int),\n 3\n )\n m.foo.assert_called_with(\n [\n\t\t\tmock_matchers.instance_of(int),\n\t\t\t2,\n\t\t\t3\n ]\n )\n m.foo.assert_called_with(mock_matchers.isntance_of(list))\n\n\n\netc... For a full list of available matchers refer to the `PyHamcrest Matchers`_\ndocumentation and simply replace ``from hamcrest import ``\nwith ``from mock_matchers import ``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alisaifee/mock-matchers", "keywords": null, "license": "Copyright (c) 2014 Ali-Akber Saifee \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 to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies 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 THE\nSOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "mock_matchers", "package_url": "https://pypi.org/project/mock_matchers/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mock_matchers/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/alisaifee/mock-matchers" }, "release_url": "https://pypi.org/project/mock_matchers/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "hamcrest matchers for mock assertions", "version": "0.0.1" }, "last_serial": 1210313, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "2946d58be5631091830b5fe0b2f21129", "sha256": "7c65a2703b32e77a8de12a3e50efdbbb8d367f112c9d49d813ff4b03e37e2eb9" }, "downloads": -1, "filename": "mock_matchers-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "2946d58be5631091830b5fe0b2f21129", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9490, "upload_time": "2014-09-02T13:01:36", "url": "https://files.pythonhosted.org/packages/25/bb/fb1a9de94be706abc623e2aa38c92db416ee87301468ed56f935b28229a3/mock_matchers-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "63fe568ee92846c8a47e1e0e8be53c08", "sha256": "622a00a0aa4e8827cec4d10fd2959dca91be18dc999a2fed2754cef91b4767f4" }, "downloads": -1, "filename": "mock_matchers-0.0.1.tar.gz", "has_sig": false, "md5_digest": "63fe568ee92846c8a47e1e0e8be53c08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9338, "upload_time": "2014-09-02T13:01:32", "url": "https://files.pythonhosted.org/packages/df/fd/7fde47abc147274c5f01cf231ec5b0a9b42cceb1fd264ff98389a1acbd68/mock_matchers-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2946d58be5631091830b5fe0b2f21129", "sha256": "7c65a2703b32e77a8de12a3e50efdbbb8d367f112c9d49d813ff4b03e37e2eb9" }, "downloads": -1, "filename": "mock_matchers-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "2946d58be5631091830b5fe0b2f21129", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 9490, "upload_time": "2014-09-02T13:01:36", "url": "https://files.pythonhosted.org/packages/25/bb/fb1a9de94be706abc623e2aa38c92db416ee87301468ed56f935b28229a3/mock_matchers-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "63fe568ee92846c8a47e1e0e8be53c08", "sha256": "622a00a0aa4e8827cec4d10fd2959dca91be18dc999a2fed2754cef91b4767f4" }, "downloads": -1, "filename": "mock_matchers-0.0.1.tar.gz", "has_sig": false, "md5_digest": "63fe568ee92846c8a47e1e0e8be53c08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9338, "upload_time": "2014-09-02T13:01:32", "url": "https://files.pythonhosted.org/packages/df/fd/7fde47abc147274c5f01cf231ec5b0a9b42cceb1fd264ff98389a1acbd68/mock_matchers-0.0.1.tar.gz" } ] }