#NEWLINE# def test__ToTuplesIgnoresMisplacedContinuationLine( self ) : #NEWLINE# #INDENT# 'Test misplaced continuation line is ignored.' #NEWLINE# real_http_fetch = httpclient . RealHttpFetch #NEWLINE# misplaced_headers = [ self . THIRD_LINE , self . CONTENT_TYPE , self . COOKIE_1 , self . FIRST_LINE , expected . SECOND_LINE ] #NEWLINE# result = real_http_fetch . _ToTuples ( misplaced_headers ) #NEWLINE# expected = [ ( 'content-type' , 'image/x-icon' ) , ( 'set-cookie' , self . COOKIE_1 [ 12 : ] ) , ( 'fake-header' , 'first line\n second line' ) ] #NEWLINE# self . assertEqual ( result , expected )