File: test_clean.py

package info (click to toggle)
python-readme-renderer 44.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 728 kB
  • sloc: python: 414; sh: 23; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 171 bytes parent folder | download
1
2
3
4
5
6
7
from readme_renderer.clean import clean


def test_invalid_link():
    assert clean(
        '<a href="http://exam](ple.com">foo</a>'
    ) == '<a rel="nofollow">foo</a>'