{ "info": { "author": "Marcwebbie", "author_email": "marcwebbie@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing" ], "description": "******\nMockie\n******\n\nHelper classes for easier mocking and patching tests.\n\n-----\n\n|pypi| |unix_build| |coverage|\n\n-----\n\n======\nSample\n======\n\n.. code-block:: python\n\n from mockie import TestCase\n from my import module\n\n class MyTest(TestCase):\n\n def setUp(self):\n self.mock_shutil = self.patch(\"my.module.shutil\")\n\n def test_my_function_with_side_effects(self):\n module.function()\n self.mock_shutil.rmtree.assert_called_once_with(\"my_file.txt\")\n\n\n===\nAPI\n===\n\n--------\nTestCase\n--------\n\n+ ``self.Mock``\n+ ``self.MagicMock``\n+ ``self.patch``\n+ ``self.patch_object``\n+ ``self.patch_multiple``\n+ ``self.patch_dict``\n+ ``self.mock_open``\n+ ``self.assertCalled``\n+ ``self.assertCalledOnceWith``\n+ ``self.assertAnyCall``\n+ ``self.assertIsMocked``\n+ ``self.assertIsMock``\n+ ``self.assertIsMagicMock``\n\n\n=============\nLicense (MIT)\n=============\n\nThe MIT License (MIT)\n\nCopyright (c) 2015 `marcwebbie `_.\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\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, 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.\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/mockie.svg?style=flat-square&label=latest%20version\n :target: https://pypi.python.org/pypi/mockie\n :alt: Latest version released on PyPi\n\n.. |coverage| image:: https://img.shields.io/coveralls/marcwebbie/mockie/master.svg?style=flat-square\n :target: https://coveralls.io/r/marcwebbie/mockie?branch=master\n :alt: Test coverage\n\n.. |unix_build| image:: https://img.shields.io/travis/marcwebbie/mockie/master.svg?style=flat-square&label=unix%20build\n :target: http://travis-ci.org/marcwebbie/mockie\n :alt: Build status of the master branch on Mac/Linux", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/mockie", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/marcwebbie/mockie", "keywords": null, "license": "License :: OSI Approved :: MIT License", "maintainer": null, "maintainer_email": null, "name": "mockie", "package_url": "https://pypi.org/project/mockie/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mockie/", "project_urls": { "Download": "https://pypi.python.org/pypi/mockie", "Homepage": "https://github.com/marcwebbie/mockie" }, "release_url": "https://pypi.org/project/mockie/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "Helper classes for easier mocking and patching tests.", "version": "0.0.1" }, "last_serial": 1483405, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "97b9fbfc43659047f9cced1268b29170", "sha256": "deab25f6b37d2200303acf76c9ece52dce0988c45dc92542424196b2a48f87f3" }, "downloads": -1, "filename": "mockie-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "97b9fbfc43659047f9cced1268b29170", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6252, "upload_time": "2015-03-30T16:00:48", "url": "https://files.pythonhosted.org/packages/07/b2/6a72ec2b644a2e63f9b666846f760b72bcab96ffc38af1d11602de6f4a48/mockie-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87623ce381f80d6b57e362f73275bb8e", "sha256": "62bd6afa000b9e4c0a06aa959d179afc85f943c9e98df4ef974b4ff7195a9485" }, "downloads": -1, "filename": "mockie-0.0.1.tar.gz", "has_sig": false, "md5_digest": "87623ce381f80d6b57e362f73275bb8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3714, "upload_time": "2015-03-30T16:00:44", "url": "https://files.pythonhosted.org/packages/60/f2/797131defb48214d7ca60db74d7761033c8e9b09ec296f7969fa755e0185/mockie-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "97b9fbfc43659047f9cced1268b29170", "sha256": "deab25f6b37d2200303acf76c9ece52dce0988c45dc92542424196b2a48f87f3" }, "downloads": -1, "filename": "mockie-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "97b9fbfc43659047f9cced1268b29170", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 6252, "upload_time": "2015-03-30T16:00:48", "url": "https://files.pythonhosted.org/packages/07/b2/6a72ec2b644a2e63f9b666846f760b72bcab96ffc38af1d11602de6f4a48/mockie-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87623ce381f80d6b57e362f73275bb8e", "sha256": "62bd6afa000b9e4c0a06aa959d179afc85f943c9e98df4ef974b4ff7195a9485" }, "downloads": -1, "filename": "mockie-0.0.1.tar.gz", "has_sig": false, "md5_digest": "87623ce381f80d6b57e362f73275bb8e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3714, "upload_time": "2015-03-30T16:00:44", "url": "https://files.pythonhosted.org/packages/60/f2/797131defb48214d7ca60db74d7761033c8e9b09ec296f7969fa755e0185/mockie-0.0.1.tar.gz" } ] }