#NEWLINE# def test_multiline( self ) : #NEWLINE# #INDENT# for ( url , expected ) in self . full_pairs . items ( ) : #NEWLINE# #INDENT# expected_inline = self . inline_pairs [ url ] #NEWLINE# frame = 'this is inline: %s\n%s\nand yet another %s' #NEWLINE# test_str = ( frame % ( url , url , url ) ) #NEWLINE# parsed = parse_text ( test_str , test_pr ) #NEWLINE# self . assertHTMLEqual ( parsed , ( frame % ( expected_inline , expected , expected_inline ) ) ) #NEWLINE# #UNINDENT# for ( url , expected ) in self . full_pairs . items ( ) : #NEWLINE# #INDENT# expected_inline = self . inline_pairs [ url ] #NEWLINE# frame = '%s\nthis is inline: %s\n%s' #NEWLINE# test_str = ( frame % ( url , url , url ) ) #NEWLINE# parsed = parse_text ( test_str , test_pr ) #NEWLINE# self . assertHTMLEqual ( parsed , ( frame % ( expected , expected_inline , expected ) ) ) #NEWLINE# #UNINDENT# for ( url , expected ) in self . full_pairs . items ( ) : #NEWLINE# #INDENT# expected_inline = self . inline_pairs [ url ] #NEWLINE# frame = '<p>%s</p>\n<p>this is inline: %s</p>\n<p>\n%s\n</p><p>last test\n%s\n</p>' #NEWLINE# test_str = ( frame % ( url , url , url , url ) ) #NEWLINE# parsed = parse_html ( test_str , test_pr ) #NEWLINE# self . assertHTMLEqual ( parsed , ( frame % ( expected , expected_inline , expected , expected_inline ) ) ) #NEWLINE# #UNINDENT# for ( url , expected ) in self . full_pairs . items ( ) : #NEWLINE# #INDENT# expected_inline = self . inline_pairs [ url ] #NEWLINE# frame = '<p><a href="#foo">%s</a></p>\n<p>this is inline: %s</p>\n<p>last test\n%s\n</p>' #NEWLINE# test_str = ( frame % ( url , url , url ) ) #NEWLINE# parsed = parse_html ( test_str , test_pr ) #NEWLINE# self . assertHTMLEqual ( parsed , ( frame % ( url , expected_inline , expected_inline ) ) )