#NEWLINE# def test_fix_missing_card_append( self ) : #NEWLINE# #INDENT# hdu = fits . ImageHDU ( ) #NEWLINE# errs = hdu . req_cards ( 'TESTKW' , None , None , 'foo' , 'silentfix' , [ ] ) #NEWLINE# assert ( len ( errs ) == 1 ) #NEWLINE# assert ( 'TESTKW' in hdu . header ) #NEWLINE# assert ( self . header [ 'TESTKW' ] == 'foo' ) #NEWLINE# assert ( hdu . header . cards [ ( - 1 ) ] . keyword == 'TESTKW' )