{ "info": { "author": "Anne Mulhern", "author_email": "amulhern@redhat.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Hypothesis", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing" ], "description": "A Hypothesis Strategy for Generating Arbitrary DBus Signatures\n==============================================================\n\nThis package contains a Hypothesis strategy for generating DBus signatures.\nAn informal specification of DBus signatures is available at:\nhttps://dbus.freedesktop.org/doc/dbus-specification.html.\n\nThe strategy is intended to be both sound and complete. That is, it should\nnever generate an invalid DBus signature and it should be capable, modulo\nsize constraints, of generating any valid DBus signature.\n\nUsage\n-----\n\nImport the function and obtain a strategy with the default parameters. ::\n\n >>> from hs_dbus_signature import dbus_signatures\n >>> strategy = dbus_signatures()\n\nObtain a few examples of valid signatures, e.g., ::\n\n >>> strategy.example()\n ''\n >>> strategy.example()\n 'a{ng}'\n >>> strategy.example()\n 'a{xas}a{gah}a{nau}'\n\nMake use of the strategy in your tests, e.g. ::\n\n from hypothesis import given\n\n @given(dbus_signatures())\n def test(signature):\n ...\n\nUse the parameters to omit dicts ::\n\n >>> strategy = dbus_signatures(exclude_dicts=True)\n >>> strategy.example()\n '(gnggg)(n)(gn)(nnnnn)(nn)'\n\nor to ensure that no example signature is the empty string ::\n\n >>> strategy = dbus_signatures(min_complete_types=1)\n >>> strategy.example()\n 'a{sv}'\n\nThe strategy will raise an InvalidArgument exception immediately if it is given\narguments which allow no examples to be drawn. ::\n\n >>> strategy = dbus_signatures(blacklist=string.ascii_lowercase)\n Traceback (most recent call last):\n ...\n\nRemarks\n-------\n\nDocumentation for the Hypothesis testing library can be found at\nhttp://hypothesis.readthedocs.io.\n\nThis strategy makes use of the Hypothesis higher-order strategy, recursive(),\nwhich is discussed here: http://hypothesis.works/articles/recursive-data/.\n\nIt is only supported for Python 3 as it uses Python 3 only syntax.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MPL v2", "maintainer": "", "maintainer_email": "", "name": "hs-dbus-signature", "package_url": "https://pypi.org/project/hs-dbus-signature/", "platform": "Linux", "project_url": "https://pypi.org/project/hs-dbus-signature/", "project_urls": null, "release_url": "https://pypi.org/project/hs-dbus-signature/0.6/", "requires_dist": null, "requires_python": "", "summary": "dbus signature hypothesis strategy generator", "version": "0.6" }, "last_serial": 4461690, "releases": { "0.4": [ { "comment_text": "", "digests": { "md5": "9403126f3f8462eb1d78ee2ced73663b", "sha256": "aee25438a8ef3aa4c6313d5ac81f14d46e05128234c7cf1dc30bf35ff4044ac2" }, "downloads": -1, "filename": "hs-dbus-signature-0.4.tar.gz", "has_sig": false, "md5_digest": "9403126f3f8462eb1d78ee2ced73663b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6214, "upload_time": "2016-10-14T16:33:26", "url": "https://files.pythonhosted.org/packages/9d/35/25f43fc7d7116887d17127e11c21a4fe94da4ba24ad684696d4cf9010da5/hs-dbus-signature-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "8f2db597cc61e45562d7146d7de51360", "sha256": "6f679a24cb1755d0fa1d8a049dbf3b8680e76b25266e60d2fce49da7a9eb6be7" }, "downloads": -1, "filename": "hs-dbus-signature-0.5.tar.gz", "has_sig": false, "md5_digest": "8f2db597cc61e45562d7146d7de51360", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6191, "upload_time": "2017-01-13T13:17:04", "url": "https://files.pythonhosted.org/packages/b9/00/9497341440b495d106481cf40de2ebea5fbc7972cb8fb8b6721fc0a2df87/hs-dbus-signature-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "dd2848fbf0378d6b967fa1405db49344", "sha256": "b6b1ff5225335fbc95d383d42858fb3e186938675b88ac48f0b7766bddf8d78f" }, "downloads": -1, "filename": "hs-dbus-signature-0.6.tar.gz", "has_sig": false, "md5_digest": "dd2848fbf0378d6b967fa1405db49344", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5732, "upload_time": "2018-11-07T14:28:34", "url": "https://files.pythonhosted.org/packages/ef/17/32698b62c78771ffa4ca31e1d674c7755fc96d6f70d0ed5a7406bc95c7df/hs-dbus-signature-0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd2848fbf0378d6b967fa1405db49344", "sha256": "b6b1ff5225335fbc95d383d42858fb3e186938675b88ac48f0b7766bddf8d78f" }, "downloads": -1, "filename": "hs-dbus-signature-0.6.tar.gz", "has_sig": false, "md5_digest": "dd2848fbf0378d6b967fa1405db49344", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5732, "upload_time": "2018-11-07T14:28:34", "url": "https://files.pythonhosted.org/packages/ef/17/32698b62c78771ffa4ca31e1d674c7755fc96d6f70d0ed5a7406bc95c7df/hs-dbus-signature-0.6.tar.gz" } ] }