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.6.tar.gz (5.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for sieve-0.1.6.tar.gz
Algorithm Hash digest
SHA256 bb840f52804617f683ff84ab02e71f4f25ef5f568d658d7637846bb5d238c068
MD5 a5e485cd97373da309f4706582f89afa
BLAKE2b-256 309ddc38592af1a3a7f969065e8f918a1ce81e91340c734137950e6871320581

See more details on using hashes here.

Provenance

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