#NEWLINE# def test_status_written( self ) : #NEWLINE# #INDENT# writer = HttpWriter ( None , None , None , None ) #NEWLINE# self . assertFalse ( writer . _headers_sent ) #NEWLINE# writer . _status_written = self . _headers_sent = True #NEWLINE# writer . restore ( ) #NEWLINE# self . assertFalse ( self . _headers_sent )