#NEWLINE# def test_client_no_body( self ) : #NEWLINE# #INDENT# p = self . parser ( ) #NEWLINE# data = b'HTTP/1.1 200 OK\r\nConnection: keep-alive\r\n\r\n' #NEWLINE# self . assertEqual ( p . execute ( self , len ( data ) ) , len ( data ) ) #NEWLINE# self . assertTrue ( p . is_headers_complete ( ) ) #NEWLINE# self . assertTrue ( p . is_message_begin ( ) ) #NEWLINE# self . assertFalse ( p . is_partial_body ( ) ) #NEWLINE# self . assertFalse ( p . is_message_complete ( ) )