#NEWLINE# def test_add_del_columns( self ) : #NEWLINE# #INDENT# p = fits . ColDefs ( [ ] ) #NEWLINE# p . add_col ( fits . Column ( name = 'FOO' , format = '3J' ) ) #NEWLINE# p . add_col ( fits . Column ( name = 'BAR' , format = '1I' ) ) #NEWLINE# assert ( self . names == [ 'FOO' , 'BAR' ] ) #NEWLINE# p . del_col ( 'FOO' ) #NEWLINE# assert ( p . names == [ 'BAR' ] )