def test_protocol_relative():
 html = 'bad <a href="//ex.mp">link</a>'
 expect = 'bad link'
 eq_(expect, bleach.delinkify(html))
 eq_(expect, bleach.delinkify(html, allow_relative=True))
 eq_(html, bleach.delinkify(html, allow_domains='ex.mp'))

def test_protocol_relative ( ) : html = 'bad <a href="//ex.mp">link</a>' expect = 'bad link' eq_ ( expect , bleach . delinkify ( html ) ) eq_ ( expect , bleach . delinkify ( html , allow_relative = True ) ) eq_ ( html , bleach . delinkify ( html , allow_domains = 'ex.mp' ) )
protocol-relative links arent relative .