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)
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.

Project details


Download files

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

Source Distribution

sieve-0.1.9.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file sieve-0.1.9.tar.gz.

File metadata

  • Download URL: sieve-0.1.9.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sieve-0.1.9.tar.gz
Algorithm Hash digest
SHA256 4c84d8f49cad1ff9c9e35e3acb8978ab5ab11590208fe2e8a3e39e243b2dd51a
MD5 419b662247ab7c537f8e3da58731586d
BLAKE2b-256 094b86a224cd68c40932d2bfcabc7568f69276a7c0cd9a7beb5778d9745d8227

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page