def test_relative():
 html = 'some <a href="/foo/bar">link</a>'
 eq_('some link', bleach.delinkify(html))
 eq_(html, bleach.delinkify(html, allow_relative=True))

def test_relative ( ) : html = 'some <a href="/foo/bar">link</a>' eq_ ( 'some link' , bleach . delinkify ( html ) ) eq_ ( html , bleach . delinkify ( html , allow_relative = True ) )
relative links are optionally ok .