{ "info": { "author": "Richard O'Dwyer", "author_email": "richard@richard.do", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing", "Topic :: Text Processing :: Markup :: XML" ], "description": "Python XML-Unittest\n===================\n[![Build Status](https://travis-ci.org/richardasaurus/python-xmlunittest-better.png?branch=master)](https://travis-ci.org/richardasaurus/python-xmlunittest-better)\n[![Downloads](https://pypip.in/d/xmlunittestbetter/badge.png)](https://crate.io/packages/xmlunittestbetter/)\n\nThis is a spork of [https://github.com/Exirel/python-xmlunittest](https://github.com/Exirel/python-xmlunittest).\nWith wider lxml support and Python 2.7, 3.4 & 3.4 support.\n\n\nExamples\n======\n\n- Extend xmlunittest.XmlTestCase\n- Write your tests, using the function or method that generate XML document\n- Use xmlunittest.XmlTestCase\u2018s assertion methods to validate\n- Keep your test readable\n\nExample:\n\n```\n\n from xmlunittest import XmlTestCase\n\n\n class CustomTestCase(XmlTestCase):\n\n def test_my_custom_test(self):\n # In a real case, data come from a call to your function/method.\n data = \"\"\"\n \n \n \n \n \"\"\"\n\n # Everything starts with `assert_xml_document`\n root = self.assert_xml_document(data)\n\n # Check namespace\n self.assert_xml_namespace(root, 'ns', 'uri')\n # Check\n self.assert_xpaths_unique_value(root, ('./leaf@id', ))\n self.assert_xpath_values(root, './leaf@active', ('on', 'off'))\n```\n\nRunning the tests\n======\n\nTo run the unit tests for this package::\n\n```\n pip install tox\n tox\n```", "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/richardasaurus/python-xmlunittest-better", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "xmlunittestbetter", "package_url": "https://pypi.org/project/xmlunittestbetter/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/xmlunittestbetter/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/richardasaurus/python-xmlunittest-better" }, "release_url": "https://pypi.org/project/xmlunittestbetter/0.1/", "requires_dist": null, "requires_python": null, "summary": "Library using lxml and unittest for unit testing XML. This is an actively maintained and PEP8 compliant fork of xmlunittest.", "version": "0.1" }, "last_serial": 1390590, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e1bd3fed5ec9a4a1fd8707db49280df9", "sha256": "3916cc01afd6a32eb8d785fad20e7f0075e0302299f3006c668eb812bd0ff0ab" }, "downloads": -1, "filename": "xmlunittestbetter-0.1.tar.gz", "has_sig": false, "md5_digest": "e1bd3fed5ec9a4a1fd8707db49280df9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4886, "upload_time": "2015-01-21T14:17:51", "url": "https://files.pythonhosted.org/packages/b1/78/51d64624bc86aca0131614969b7a83487e08c22669ad070b2249ecba0cf5/xmlunittestbetter-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e1bd3fed5ec9a4a1fd8707db49280df9", "sha256": "3916cc01afd6a32eb8d785fad20e7f0075e0302299f3006c668eb812bd0ff0ab" }, "downloads": -1, "filename": "xmlunittestbetter-0.1.tar.gz", "has_sig": false, "md5_digest": "e1bd3fed5ec9a4a1fd8707db49280df9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4886, "upload_time": "2015-01-21T14:17:51", "url": "https://files.pythonhosted.org/packages/b1/78/51d64624bc86aca0131614969b7a83487e08c22669ad070b2249ecba0cf5/xmlunittestbetter-0.1.tar.gz" } ] }