#NEWLINE# def test_add_date_header_existing( self ) : #NEWLINE# #INDENT# env = Envelope ( ) #NEWLINE# epoch = 'Thu, 01 Jan 1970 00:00:00 -0000' #NEWLINE# env . parse ( ( ( b'Date: ' + epoch . encode ( ) ) + b'\r\n' ) ) #NEWLINE# adh = AddDateHeader ( ) #NEWLINE# self . assertEqual ( epoch , env . headers [ 'Date' ] ) #NEWLINE# adh . apply ( env ) #NEWLINE# self . assertEqual ( epoch , env . headers [ 'Date' ] )