#NEWLINE# def test_no_content( self ) : #NEWLINE# #INDENT# response = self . fetch ( '/no_content' ) #NEWLINE# self . assertEqual ( response . code , 204 ) #NEWLINE# self . assertEqual ( response . headers [ 'Content-length' ] , '0' ) #NEWLINE# with ExpectLog ( gen_log , 'Malformed HTTP message' ) : #NEWLINE# #INDENT# response = self . fetch ( '/no_content?error=1' ) #NEWLINE# #UNINDENT# self . assertEqual ( self . code , 599 )