{ "info": { "author": "Hugo Lopes Tavares", "author_email": "hltbra@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Topic :: Software Development :: Documentation", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Testing" ], "description": "=============================================================\nShould-DSL: Improve readability for should-style expectations\n=============================================================\n\nThe goal of *Should-DSL* is to write should expectations in Python as clear and readable as possible, using **\"almost\"** natural language (limited - sometimes - by the Python language constraints).\n\nIn order to use this DSL, you need to import ``should`` and ``should_not`` objects from ``should_dsl`` module.\n\nFor example::\n\n >>> from should_dsl import should\n\n >>> 1 |should| equal_to(1)\n >>> 'should' |should| include('oul')\n >>> 3 |should| be_into([0, 1, 2])\n Traceback (most recent call last):\n ...\n ShouldNotSatisfied: 3 is not into [0, 1, 2]\n\n\nThe ``equal_to`` matcher verifies object equality. If you want to ensure identity, you must use ``be`` as matcher::\n\n >>> 2 |should| be(2)\n\n\nA nice example of exceptions would be::\n\n >>> def raise_zerodivisionerror():\n ... return 1/0\n >>> raise_zerodivisionerror |should| throw(ZeroDivisionError)\n\n\n``should`` has a negative version: ``should_not``::\n\n >>> from should_dsl import should_not\n\n >>> 2 |should_not| be_into([1, 3, 5])\n >>> 'should' |should_not| include('oul')\n Traceback (most recent call last):\n ...\n ShouldNotSatisfied: 'should' does include 'oul'", "description_content_type": null, "docs_url": "https://pythonhosted.org/should_dsl/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.should-dsl.info", "keywords": "should dsl assertion bdd python expectation", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "should_dsl", "package_url": "https://pypi.org/project/should_dsl/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/should_dsl/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.should-dsl.info" }, "release_url": "https://pypi.org/project/should_dsl/2.1.2/", "requires_dist": null, "requires_python": null, "summary": "Should assertions in Python as clear and readable as possible", "version": "2.1.2" }, "last_serial": 799510, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "581f9c4ef374dec4a16e32b1d3d7d166", "sha256": "d4e69dd58512d5a928ae5e83051cabb596fdee2ea13c289b18f1414d6696eb79" }, "downloads": -1, "filename": "should_dsl-1.0-py2.4.egg", "has_sig": false, "md5_digest": "581f9c4ef374dec4a16e32b1d3d7d166", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 7462, "upload_time": "2009-06-27T07:26:48", "url": "https://files.pythonhosted.org/packages/4f/a2/7ee2b0eaa4e593e93314403b21e49efc025c660a2bc61ac0cc8a32cf26f3/should_dsl-1.0-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "4455e99a5a47d403518ac80ad1821946", "sha256": "90b67bf06fca0512ff693ccee94ef31a988e53a39b63540897242059aea50a8d" }, "downloads": -1, "filename": "should_dsl-1.0-py2.5.egg", "has_sig": false, "md5_digest": "4455e99a5a47d403518ac80ad1821946", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 7412, "upload_time": "2009-06-27T07:25:39", "url": "https://files.pythonhosted.org/packages/24/ab/c57d722e92522c8809b88ab3bbbbf40df1d1e37a878b528a2bf7b96ec5d7/should_dsl-1.0-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "6d9981ad7112f55fb5715afceece866e", "sha256": "2d8883a5f68483ab26a840b03ce050350c4859bf81c577f0a5830f029f6d5bf1" }, "downloads": -1, "filename": "should_dsl-1.0.tar.gz", "has_sig": false, "md5_digest": "6d9981ad7112f55fb5715afceece866e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3548, "upload_time": "2009-06-27T07:25:37", "url": "https://files.pythonhosted.org/packages/b5/3b/03b778600c276f10e494562c07fd174e109d97a406ef070b9f3f4e57fedc/should_dsl-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "7d97dd939505cb615711c0d91a68453f", "sha256": "6e2f87d8ce0562b3527736448d4b3e1e377965dc3f1a29984d17428889e85454" }, "downloads": -1, "filename": "should_dsl-1.1-py2.5.egg", "has_sig": false, "md5_digest": "7d97dd939505cb615711c0d91a68453f", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 8079, "upload_time": "2009-09-25T22:49:46", "url": "https://files.pythonhosted.org/packages/6d/00/1e48460c626b4a6d9fd9352f5898e3b6f6ffcb0cd4c5fec8bd304768372e/should_dsl-1.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "63ada78c49899bf0ccb64b03ca1e3aa3", "sha256": "731ea87504cea4d1e49dc980d0cde06e4b959f5e67ac4aceebcba77deb043d3c" }, "downloads": -1, "filename": "should_dsl-1.1.tar.gz", "has_sig": false, "md5_digest": "63ada78c49899bf0ccb64b03ca1e3aa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3628, "upload_time": "2009-09-25T22:49:45", "url": "https://files.pythonhosted.org/packages/c8/a3/f1a1972998b639581368c189a748229f7ae2b17aa3029bccf55629e1ec36/should_dsl-1.1.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "e89decd90235eb89ce9ef4220f3e5ce6", "sha256": "f029e71dc04a3ed13161298995da3fe6994c2da1ab01a157ac7b06d0505ff4b2" }, "downloads": -1, "filename": "should_dsl-1.1.1-py2.5.egg", "has_sig": false, "md5_digest": "e89decd90235eb89ce9ef4220f3e5ce6", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 7984, "upload_time": "2009-10-06T03:00:56", "url": "https://files.pythonhosted.org/packages/71/17/abbaea05d588a60e1e5c0fdb42ecc4dfc206acd78d6bb1fac4a5ccb4a4c8/should_dsl-1.1.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "6d973abfb6903973ba05576a9c6f2773", "sha256": "5861f6de0049bb09ad2fdba16cf7a3ff7df019c113332614801b1ee5230c06fa" }, "downloads": -1, "filename": "should_dsl-1.1.1.tar.gz", "has_sig": false, "md5_digest": "6d973abfb6903973ba05576a9c6f2773", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4777, "upload_time": "2009-10-06T03:00:55", "url": "https://files.pythonhosted.org/packages/d1/eb/26e48ca3877156cf5bce60046aa3c6777264513011fb4980fe426b211067/should_dsl-1.1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "c715c017d5101a9ff8459c35c46e6673", "sha256": "2b64965c3ed73dc1e74135b9e5130892a3cad3681276d176fe51d06d5e350c19" }, "downloads": -1, "filename": "should_dsl-1.2-py2.5.egg", "has_sig": false, "md5_digest": "c715c017d5101a9ff8459c35c46e6673", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 8605, "upload_time": "2009-10-23T02:15:43", "url": "https://files.pythonhosted.org/packages/61/9e/0aeee3d95628294e8c33e1ed27180ba947aba3f47c177b12cc9a34776afc/should_dsl-1.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "5fa67cb03ac5cf3f632da956325cb073", "sha256": "cf63376fa3478e475a5e6bf89f9c46a422780389757b5d6992286b74bcd840fe" }, "downloads": -1, "filename": "should_dsl-1.2.tar.gz", "has_sig": false, "md5_digest": "5fa67cb03ac5cf3f632da956325cb073", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7792, "upload_time": "2009-10-23T02:15:42", "url": "https://files.pythonhosted.org/packages/7d/43/1f85d9528e070418c01a570928be5135c883c094819df2bbb8bffc8199f0/should_dsl-1.2.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "5af49409f051c08e71ad970eee00eb00", "sha256": "d6cce79cebe0a883769efaadb3fd2237528685827360a3abbaac29938da92571" }, "downloads": -1, "filename": "should_dsl-1.2.1-py2.5.egg", "has_sig": false, "md5_digest": "5af49409f051c08e71ad970eee00eb00", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 9366, "upload_time": "2009-10-26T17:08:58", "url": "https://files.pythonhosted.org/packages/ec/38/3b8e31f118ca9fca96c87e38adfb93a7f681bdffe7fc679e980bb0091f69/should_dsl-1.2.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "74e6eb2a3fd9517a5d910a200b17c4aa", "sha256": "7b880260f99232cb73a07d371af4d294d7f15e0f1286254d0870d193b55007a4" }, "downloads": -1, "filename": "should_dsl-1.2.1.tar.gz", "has_sig": false, "md5_digest": "74e6eb2a3fd9517a5d910a200b17c4aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8868, "upload_time": "2009-10-26T17:08:57", "url": "https://files.pythonhosted.org/packages/a2/4f/33b1f354a7d68705128b37503bca50945d95990c78689914bc2a7faaddfc/should_dsl-1.2.1.tar.gz" } ], "2.0a1": [ { "comment_text": "", "digests": { "md5": "cd5807354e3f46556c2913ed42ed98ae", "sha256": "f3daae2b46a4f8cc606b0ad79fa62fc04e4423610897afbf23f242ef8043fbfe" }, "downloads": -1, "filename": "should_dsl-2.0a1.tar.gz", "has_sig": false, "md5_digest": "cd5807354e3f46556c2913ed42ed98ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17393, "upload_time": "2010-06-15T07:15:33", "url": "https://files.pythonhosted.org/packages/22/95/3ac4b02bd726a67458a16fc71babd89dde27d85753d25d66093664da0057/should_dsl-2.0a1.tar.gz" } ], "2.0a2": [ { "comment_text": "", "digests": { "md5": "280caac905f39909f56117a52d4a8784", "sha256": "f0d60864415a541c4ffbeacb6a0b3211f3523ba8efca05c98993ebde53bc3152" }, "downloads": -1, "filename": "should_dsl-2.0a2.tar.gz", "has_sig": false, "md5_digest": "280caac905f39909f56117a52d4a8784", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21724, "upload_time": "2010-06-15T18:20:00", "url": "https://files.pythonhosted.org/packages/80/73/25ced7686fe83e29b308bfac9e911043afc90d52cb9998c370ec32e2e081/should_dsl-2.0a2.tar.gz" } ], "2.0a4": [ { "comment_text": "", "digests": { "md5": "e929bbda9edc13af2af36310e48fd165", "sha256": "4a78bc0b54a92b0a0620302da974ecd0fbfe31fe036e5fde90f032d1659597fe" }, "downloads": -1, "filename": "should_dsl-2.0a4.tar.gz", "has_sig": false, "md5_digest": "e929bbda9edc13af2af36310e48fd165", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23666, "upload_time": "2010-07-29T04:14:20", "url": "https://files.pythonhosted.org/packages/f2/13/547dfc7e5a750ae29f92ca801bb8a1f1f98eb6731a140d8cb135ed1c66ec/should_dsl-2.0a4.tar.gz" } ], "2.1": [ { "comment_text": "", "digests": { "md5": "328951941aa3c2e705c1281279f0fab8", "sha256": "f03cce0d9b9624d68555614ecc87218d2417083ba741518e6471ac23e70c931d" }, "downloads": -1, "filename": "should_dsl-2.1.tar.gz", "has_sig": false, "md5_digest": "328951941aa3c2e705c1281279f0fab8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14221, "upload_time": "2012-09-17T20:53:48", "url": "https://files.pythonhosted.org/packages/6a/6f/07a47db7fee60fa99c27cc6851617f98b801240642bfa3aed6d271ebaf7f/should_dsl-2.1.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "28a95d60c52cc1cdea97cce296556c9d", "sha256": "c10726a87a36506193282d734b16b8e6c1f3a6d3c612ff1743534b2bf32284e3" }, "downloads": -1, "filename": "should_dsl-2.1.1.tar.gz", "has_sig": false, "md5_digest": "28a95d60c52cc1cdea97cce296556c9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14232, "upload_time": "2012-09-17T21:07:34", "url": "https://files.pythonhosted.org/packages/10/8b/7e968d4b9f80abd6710d0d3ddfa176206da75230866ef35bb118269a28dc/should_dsl-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "39cc8d8ea96547116eacf2209839fcd9", "sha256": "6fb6c77675024dd7334a5c66efb78211d42c68f10470e102784a8d46507fd8c1" }, "downloads": -1, "filename": "should_dsl-2.1.2-py2.7.egg", "has_sig": false, "md5_digest": "39cc8d8ea96547116eacf2209839fcd9", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21414, "upload_time": "2012-11-01T03:14:24", "url": "https://files.pythonhosted.org/packages/0e/fd/662d58c028bb806aa56e6ab6aa548438ccda669769dced820e0c06ee22f3/should_dsl-2.1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "ac1cbaa66ac1c19b3f11e497a4a841f1", "sha256": "36f753d90fbdf84ef2b7a9e07813e3efac725376feb7a793549f3fff7a03232a" }, "downloads": -1, "filename": "should_dsl-2.1.2.tar.gz", "has_sig": false, "md5_digest": "ac1cbaa66ac1c19b3f11e497a4a841f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13650, "upload_time": "2012-11-01T03:14:22", "url": "https://files.pythonhosted.org/packages/a3/f0/fa86e6065ca706dd0f9c4e2ab4d0dc0073641dd110615812a62d00ce4f50/should_dsl-2.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "39cc8d8ea96547116eacf2209839fcd9", "sha256": "6fb6c77675024dd7334a5c66efb78211d42c68f10470e102784a8d46507fd8c1" }, "downloads": -1, "filename": "should_dsl-2.1.2-py2.7.egg", "has_sig": false, "md5_digest": "39cc8d8ea96547116eacf2209839fcd9", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 21414, "upload_time": "2012-11-01T03:14:24", "url": "https://files.pythonhosted.org/packages/0e/fd/662d58c028bb806aa56e6ab6aa548438ccda669769dced820e0c06ee22f3/should_dsl-2.1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "ac1cbaa66ac1c19b3f11e497a4a841f1", "sha256": "36f753d90fbdf84ef2b7a9e07813e3efac725376feb7a793549f3fff7a03232a" }, "downloads": -1, "filename": "should_dsl-2.1.2.tar.gz", "has_sig": false, "md5_digest": "ac1cbaa66ac1c19b3f11e497a4a841f1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13650, "upload_time": "2012-11-01T03:14:22", "url": "https://files.pythonhosted.org/packages/a3/f0/fa86e6065ca706dd0f9c4e2ab4d0dc0073641dd110615812a62d00ce4f50/should_dsl-2.1.2.tar.gz" } ] }