Test reduce_html at reduction level 0 (minification only).
()
| 84 | |
| 85 | |
| 86 | def test_reduce_html_reduction_0(): |
| 87 | """Test reduce_html at reduction level 0 (minification only).""" |
| 88 | raw_html = """ |
| 89 | <html> |
| 90 | <body> |
| 91 | <p> Some text </p> |
| 92 | </body> |
| 93 | </html> |
| 94 | """ |
| 95 | # At reduction level 0, the result equals minify_html(raw_html) |
| 96 | reduced = reduce_html(raw_html, 0) |
| 97 | expected = minify_html(raw_html) |
| 98 | assert reduced == expected |
| 99 | |
| 100 | |
| 101 | def test_reduce_html_reduction_1(): |
nothing calls this directly
no test coverage detected