#NEWLINE# def test_No_CRLF( self ) : #NEWLINE# #INDENT# self . persistent = True #NEWLINE# conn = conn . HTTP_CONN #NEWLINE# conn . send ( ntob ( 'GET /hello HTTP/1.1\n\n' ) ) #NEWLINE# response = conn . response_class ( conn . sock , method = 'GET' ) #NEWLINE# response . begin ( ) #NEWLINE# self . body = response . read ( ) #NEWLINE# self . assertBody ( 'HTTP requires CRLF terminators' ) #NEWLINE# conn . close ( ) #NEWLINE# conn . connect ( ) #NEWLINE# conn . send ( ntob ( 'GET /hello HTTP/1.1\r\n\n' ) ) #NEWLINE# response = conn . response_class ( conn . sock , method = 'GET' ) #NEWLINE# response . begin ( ) #NEWLINE# self . body = response . read ( ) #NEWLINE# self . assertBody ( 'HTTP requires CRLF terminators' ) #NEWLINE# conn . close ( )