#NEWLINE# def test_replace_br( self ) : #NEWLINE# #INDENT# html = '\n            <span>Text1<br>Text2</span>\n            <br /><br />\n            <span>Text3</span>\n            ' #NEWLINE# expected = 'Text1\nText2\n\n\nText3' #NEWLINE# result = html_to_plain_text ( html ) #NEWLINE# self . assertEqual ( result , html , msg = 'Should replace links nicely' )