#NEWLINE# def test_allHeadersCallback( self ) : #NEWLINE# #INDENT# '\n        After the last header is received, L{HTTPParser} calls\n        C{allHeadersReceived}.\n        ' #NEWLINE# called = [ ] #NEWLINE# ( header , protocol ) = self . _headerTestSetup ( ) #NEWLINE# def allHeadersReceived( ) : #NEWLINE# #INDENT# called . append ( protocol . state ) #NEWLINE# protocol . state = STATUS #NEWLINE# #UNINDENT# protocol . allHeadersReceived = allHeadersReceived #NEWLINE# protocol . dataReceived ( self . sep ) #NEWLINE# self . assertEqual ( called , [ HEADER ] ) #NEWLINE# self . assertEqual ( protocol . state , STATUS )