Python library for comparing HTML snippets
Project description
html-compare
Python library for comparing HTML snippets. Intentionally lacking any external dependencies. Ported from Django internal testing utilities here.
Usage
def test_html_equals():
# Attributes should be significant, but whitepsace and quote-style should not be significant
assert html_equal("<a data-foo='bar'>Hi\n</a>", '<a data-foo="bar"> Hi </a>')
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
Built Distribution
Close
Hashes for python_html_compare-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 578c56fd301897762764b84d629534f9a5ee36ca2ba17c44ed257532a1be731e |
|
MD5 | 68cde642eabb91502898d9f97ec4bb5a |
|
BLAKE2b-256 | da39545058de8da3e462981ac8c57386899ee0a7bc6991ae6a0299efa248cd3c |
Close
Hashes for python_html_compare-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a712bdeeb235817ca00d66db46a3e045fb32cce66e7b6318cda80e0f8200f42 |
|
MD5 | 91526bb498bb0846ee5876df2caf13a8 |
|
BLAKE2b-256 | d1fe827ad97e96b8e02c1df34638590aac2735a7d54fd82d5851deeacd54dd72 |