Skip to main content

XML Comparison Utils

Project description

Ripped from FormEncode and strainer just to support Pythons 2 and 3. Intended for use in your webapp test suites.

Build Status

Branch Status
master Build Status - master branch
develop Build Status - develop branch

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)
>>> c = "<html><body><foo><bar>Value</bar></foo></body></html"
>>> in_xml(a, c)  # 'needle' in a 'haystack'

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sieve, version 0.1.9
Filename, size & hash File type Python version Upload date
sieve-0.1.9.tar.gz (5.7 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page