Metadata-Version: 2.1
Name: sieve
Version: 0.1.9
Summary: XML Comparison Utils
Home-page: http://github.com/ralphbean/sieve
Author: Ralph Bean
Author-email: rbean@redhat.com
License: MIT
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Text Processing :: Markup :: HTML
Classifier: Topic :: Text Processing :: Markup :: XML
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
License-File: LICENSE.txt
Requires-Dist: lxml
Requires-Dist: six
Requires-Dist: markupsafe



Ripped from `FormEncode <http://pypi.python.org/pypi/FormEncode>`_ and `strainer
<http://pypi.python.org/pypi/strainer>`_ just to support Pythons 2 and 3.
Intended for use in your webapp test suites.

Build Status
------------

.. |master| image:: https://secure.travis-ci.org/ralphbean/sieve.png?branch=master
   :alt: Build Status - master branch
   :target: http://travis-ci.org/#!/ralphbean/sieve

.. |develop| image:: https://secure.travis-ci.org/ralphbean/sieve.png?branch=develop
   :alt: Build Status - develop branch
   :target: http://travis-ci.org/#!/ralphbean/sieve

+----------+-----------+
| Branch   | Status    |
+==========+===========+
| master   | |master|  |
+----------+-----------+
| develop  | |develop| |
+----------+-----------+


For Example
-----------

There are two main functions you might care to use: ``eq_xml``
and ``in_xml``::

    >>> from sieve.operators import eq_xml, in_xml
    >>> a = "<foo><bar>Value</bar></foo>"
    >>> b = """
    ... <foo>
    ...     <bar>
    ...         Value
    ...     </bar>
    ... </foo>
    ... """
    >>> eq_xml(a, b)
    True
    >>> c = "<html><body><foo><bar>Value</bar></foo></body></html"
    >>> in_xml(a, c)  # 'needle' in a 'haystack'
    True

There are also two sibling convenience functions: ``assert_eq_xml``
and ``assert_in_xml``.
