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 |
|
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.
Project details
Release history Release notifications | RSS feed
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.7.tar.gz
(5.0 kB
view details)
File details
Details for the file sieve-0.1.7.tar.gz
.
File metadata
- Download URL: sieve-0.1.7.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84e13f4fcb01728c685a4fe6c42929f66dfd8070a6db93ca2bf2df1a860e4370 |
|
MD5 | 794f999f5d9806025b0c791f339112d0 |
|
BLAKE2b-256 | 06d3e98199299354dc7fdc7704be97348221043b8e6a40c0cff26455dc4d222c |